diff --git a/include/timeline/TimelineItem.h b/include/timeline/TimelineItem.h index 6011dd4439116cd9d3492821c6ea361e1e393a35..dda6662fe871177c8db9e3224cde5bb15b4fdc75 100644 --- a/include/timeline/TimelineItem.h +++ b/include/timeline/TimelineItem.h @@ -68,20 +68,12 @@ public: this, &TextLabel::adjustHeight); document()->setDocumentMargin(0); - - setFixedHeight(document()->size().height()); - } - - QSize sizeHint() const override - { - ensurePolished(); - return document()->size().toSize(); } void wheelEvent(QWheelEvent *event) override { event->ignore(); } private slots: - void adjustHeight(const QSizeF &size) { setFixedHeight(size.height()); } + void adjustHeight(const QSizeF &size) { setMinimumHeight(size.height()); } }; class TimelineItem : public QWidget