| 310 | } |
| 311 | |
| 312 | void Datapicker::handleChildAspectAdded(const AbstractAspect* aspect) { |
| 313 | const auto* addedPoint = qobject_cast<const DatapickerPoint*>(aspect); |
| 314 | if (addedPoint) { |
| 315 | QGraphicsItem* item = addedPoint->graphicsItem(); |
| 316 | Q_ASSERT(item != nullptr); |
| 317 | Q_ASSERT(m_image != nullptr); |
| 318 | m_image->scene()->addItem(item); |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | void Datapicker::setColorPalette(const KConfig& config) { |
| 323 | if (config.hasGroup(QStringLiteral("Theme"))) { |
nothing calls this directly
no test coverage detected