|
|
@ -68,12 +68,14 @@ public: |
|
|
|
this, |
|
|
|
this, |
|
|
|
&TextLabel::adjustHeight); |
|
|
|
&TextLabel::adjustHeight); |
|
|
|
document()->setDocumentMargin(0); |
|
|
|
document()->setDocumentMargin(0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setFixedHeight(20); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void wheelEvent(QWheelEvent *event) override { event->ignore(); } |
|
|
|
void wheelEvent(QWheelEvent *event) override { event->ignore(); } |
|
|
|
|
|
|
|
|
|
|
|
private slots: |
|
|
|
private slots: |
|
|
|
void adjustHeight(const QSizeF &size) { setMinimumHeight(size.height()); } |
|
|
|
void adjustHeight(const QSizeF &size) { setFixedHeight(size.height()); } |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
class TimelineItem : public QWidget |
|
|
|
class TimelineItem : public QWidget |
|
|
|