parent
ec7b3e1e2b
commit
c11b18d5e0
@ -68,20 +68,12 @@ public:
|
|||||||
this,
|
this,
|
||||||
&TextLabel::adjustHeight);
|
&TextLabel::adjustHeight);
|
||||||
document()->setDocumentMargin(0);
|
document()->setDocumentMargin(0);
|
||||||
|
|
||||||
setFixedHeight(document()->size().height());
|
|
||||||
}
|
|
||||||
|
|
||||||
QSize sizeHint() const override
|
|
||||||
{
|
|
||||||
ensurePolished();
|
|
||||||
return document()->size().toSize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wheelEvent(QWheelEvent *event) override { event->ignore(); }
|
void wheelEvent(QWheelEvent *event) override { event->ignore(); }
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void adjustHeight(const QSizeF &size) { setFixedHeight(size.height()); }
|
void adjustHeight(const QSizeF &size) { setMinimumHeight(size.height()); }
|
||||||
};
|
};
|
||||||
|
|
||||||
class TimelineItem : public QWidget
|
class TimelineItem : public QWidget
|
||||||
|
Loading…
Reference in New Issue
Block a user