| 399 | } |
| 400 | |
| 401 | void LollipopPlotPrivate::addValue(const KConfigGroup& group) { |
| 402 | value = new Value(QString()); |
| 403 | q->addChild(value); |
| 404 | value->setHidden(true); |
| 405 | value->setcenterPositionAvailable(true); |
| 406 | if (!q->isLoading()) |
| 407 | value->init(group); |
| 408 | |
| 409 | q->connect(value, &Value::updatePixmapRequested, [=] { |
| 410 | updatePixmap(); |
| 411 | }); |
| 412 | |
| 413 | q->connect(value, &Value::updateRequested, [=] { |
| 414 | updateValues(); |
| 415 | }); |
| 416 | } |
| 417 | |
| 418 | /*! |
| 419 | called when the size of the plot or its data ranges (manual changes, zooming, etc.) were changed. |