| 369 | } |
| 370 | |
| 371 | Background* BarPlotPrivate::addBackground(const KConfigGroup& group) { |
| 372 | auto* background = new Background(QStringLiteral("background")); |
| 373 | background->setPrefix(QLatin1String("Filling")); |
| 374 | background->setEnabledAvailable(true); |
| 375 | background->setHidden(true); |
| 376 | q->addChild(background); |
| 377 | |
| 378 | if (!q->isLoading()) |
| 379 | background->init(group); |
| 380 | |
| 381 | q->connect(background, &Background::updateRequested, [=] { |
| 382 | updatePixmap(); |
| 383 | Q_EMIT q->appearanceChanged(); |
| 384 | }); |
| 385 | |
| 386 | backgrounds << background; |
| 387 | |
| 388 | return background; |
| 389 | } |
| 390 | |
| 391 | Line* BarPlotPrivate::addBorderLine(const KConfigGroup& group) { |
| 392 | auto* line = new Line(QStringLiteral("line")); |