| 661 | } |
| 662 | |
| 663 | Line* BoxPlotPrivate::addBorderLine(const KConfigGroup& group) { |
| 664 | auto* line = new Line(QStringLiteral("line")); |
| 665 | line->setPrefix(QLatin1String("Border")); |
| 666 | line->setHidden(true); |
| 667 | q->addChild(line); |
| 668 | if (!q->isLoading()) |
| 669 | line->init(group); |
| 670 | |
| 671 | q->connect(line, &Line::updatePixmapRequested, [=] { |
| 672 | updatePixmap(); |
| 673 | // Q_EMIT q->updateLegendRequested(); |
| 674 | }); |
| 675 | |
| 676 | q->connect(line, &Line::updateRequested, [=] { |
| 677 | recalcShapeAndBoundingRect(); |
| 678 | // Q_EMIT q->updateLegendRequested(); |
| 679 | }); |
| 680 | |
| 681 | borderLines << line; |
| 682 | |
| 683 | return line; |
| 684 | } |
| 685 | |
| 686 | Line* BoxPlotPrivate::addMedianLine(const KConfigGroup& group) { |
| 687 | auto* line = new Line(QStringLiteral("medianLine")); |