| 389 | } |
| 390 | |
| 391 | Line* BarPlotPrivate::addBorderLine(const KConfigGroup& group) { |
| 392 | auto* line = new Line(QStringLiteral("line")); |
| 393 | line->setPrefix(QLatin1String("Border")); |
| 394 | line->setHidden(true); |
| 395 | q->addChild(line); |
| 396 | if (!q->isLoading()) |
| 397 | line->init(group); |
| 398 | |
| 399 | q->connect(line, &Line::updatePixmapRequested, [=] { |
| 400 | updatePixmap(); |
| 401 | Q_EMIT q->appearanceChanged(); |
| 402 | }); |
| 403 | |
| 404 | q->connect(line, &Line::updateRequested, [=] { |
| 405 | recalcShapeAndBoundingRect(); |
| 406 | Q_EMIT q->appearanceChanged(); |
| 407 | }); |
| 408 | |
| 409 | borderLines << line; |
| 410 | |
| 411 | return line; |
| 412 | } |
| 413 | |
| 414 | void BarPlotPrivate::addValue(const KConfigGroup& group) { |
| 415 | value = new Value(QStringLiteral("value")); |