diff --git a/src/timeline/timelinedelegate.cpp b/src/timeline/timelinedelegate.cpp index 553d23a1b..4d2d70107 100644 --- a/src/timeline/timelinedelegate.cpp +++ b/src/timeline/timelinedelegate.cpp @@ -109,9 +109,9 @@ void TimelineDelegate::geometryChange(const QRectF &newGeometry, const QRectF &o QQuickItem::geometryChange(newGeometry, oldGeometry); } -void TimelineDelegate::componentComplete() +void TimelineDelegate::classBegin() { - QQuickItem::componentComplete(); + QQuickItem::classBegin(); auto engine = qmlEngine(this); Q_ASSERT(engine); @@ -121,6 +121,11 @@ void TimelineDelegate::componentComplete() connect(m_units, &Kirigami::Platform::Units::largeSpacingChanged, this, &TimelineDelegate::setCurveValues); connect(m_units, &Kirigami::Platform::Units::smallSpacingChanged, this, &TimelineDelegate::setCurveValues); setCurveValues(); +} + +void TimelineDelegate::componentComplete() +{ + QQuickItem::componentComplete(); if (m_isDirty) { resizeContent(); diff --git a/src/timeline/timelinedelegate.h b/src/timeline/timelinedelegate.h index 8d76c895e..02517750f 100644 --- a/src/timeline/timelinedelegate.h +++ b/src/timeline/timelinedelegate.h @@ -95,6 +95,7 @@ protected: bool m_resizingContent = false; private: + void classBegin() override; void componentComplete() override; void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override; void updatePolish() override;