############################################################################## ####################### Private implementation ############################### ##############################################################################
| 358 | // ####################### Private implementation ############################### |
| 359 | // ############################################################################## |
| 360 | BarPlotPrivate::BarPlotPrivate(BarPlot* owner) |
| 361 | : PlotPrivate(owner) |
| 362 | , q(owner) { |
| 363 | setFlag(QGraphicsItem::ItemIsSelectable); |
| 364 | setAcceptHoverEvents(false); |
| 365 | |
| 366 | // TODO: make this parameters adjustable for the user? |
| 367 | m_groupWidth = 1.0; // width of a group and of the gaps around a group |
| 368 | m_groupGap = m_groupWidth * 0.1; // gap around a group - the gap between two neighbour groups is 2*m_groupGap |
| 369 | } |
| 370 | |
| 371 | Background* BarPlotPrivate::addBackground(const KConfigGroup& group) { |
| 372 | auto* background = new Background(QStringLiteral("background")); |