summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-26 10:34:34 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-26 10:34:34 +0300
commit90595beb16351b414d248f969eb32cb37fda84b0 (patch)
treeb09c7d8b430e234ced34b65d571534c8827fb6d6 /include
parentFix resize slowness on the TopBar (diff)
downloadnheko-90595beb16351b414d248f969eb32cb37fda84b0.tar.xz
Set fixed height for the DateSeparator & TextLabel
Diffstat (limited to 'include')
-rw-r--r--include/timeline/TimelineItem.h4
-rw-r--r--include/timeline/TimelineView.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/timeline/TimelineItem.h b/include/timeline/TimelineItem.h

index dda6662f..87e2080e 100644 --- a/include/timeline/TimelineItem.h +++ b/include/timeline/TimelineItem.h
@@ -68,12 +68,14 @@ public: this, &TextLabel::adjustHeight); document()->setDocumentMargin(0); + + setFixedHeight(20); } void wheelEvent(QWheelEvent *event) override { event->ignore(); } private slots: - void adjustHeight(const QSizeF &size) { setMinimumHeight(size.height()); } + void adjustHeight(const QSizeF &size) { setFixedHeight(size.height()); } }; class TimelineItem : public QWidget diff --git a/include/timeline/TimelineView.h b/include/timeline/TimelineView.h
index 2ad00058..e6e35ccb 100644 --- a/include/timeline/TimelineView.h +++ b/include/timeline/TimelineView.h
@@ -86,8 +86,6 @@ class DateSeparator : public QWidget public: DateSeparator(QDateTime datetime, QWidget *parent = nullptr); - QSize sizeHint() const override { return QSize(width(), height_ + 2 * HMargin); } - void setTextColor(QColor color) { textColor_ = color; } void setBoxColor(QColor color) { boxColor_ = color; }