| 354 | } |
| 355 | |
| 356 | Line* LollipopPlotPrivate::addLine(const KConfigGroup& group) { |
| 357 | auto* line = new Line(QString()); |
| 358 | line->setHidden(true); |
| 359 | q->addChild(line); |
| 360 | if (!q->isLoading()) |
| 361 | line->init(group); |
| 362 | |
| 363 | q->connect(line, &Line::updatePixmapRequested, [=] { |
| 364 | updatePixmap(); |
| 365 | Q_EMIT q->appearanceChanged(); |
| 366 | }); |
| 367 | |
| 368 | q->connect(line, &Line::updateRequested, [=] { |
| 369 | recalcShapeAndBoundingRect(); |
| 370 | Q_EMIT q->appearanceChanged(); |
| 371 | }); |
| 372 | |
| 373 | lines << line; |
| 374 | |
| 375 | return line; |
| 376 | } |
| 377 | |
| 378 | Symbol* LollipopPlotPrivate::addSymbol(const KConfigGroup& group) { |
| 379 | auto* symbol = new Symbol(QString()); |