diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-11-22 19:09:19 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-11-22 19:09:19 +0200 |
commit | 929b2df6fb28a1e431027afb032f5eeefd0106b7 (patch) | |
tree | 1382bcf577b1ea9ef7e1fb7b812a4f28f30bb9bf /src/TimelineView.cc | |
parent | 937caddacd628e823ab077507611a60bf823c894 (diff) | |
parent | 19b526d4533841ca91209929f0d6aef6042a8eeb (diff) |
Merge branch 'theme'
Diffstat (limited to 'src/TimelineView.cc')
-rw-r--r-- | src/TimelineView.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/TimelineView.cc b/src/TimelineView.cc index b1fb2ad0..267fbbff 100644 --- a/src/TimelineView.cc +++ b/src/TimelineView.cc @@ -399,7 +399,6 @@ TimelineView::init() const int max = scroll_area_->verticalScrollBar()->maximum(); scroll_area_->verticalScrollBar()->setValue(max); }); - top_layout_ = new QVBoxLayout(this); top_layout_->setSpacing(0); top_layout_->setMargin(0); @@ -416,6 +415,7 @@ TimelineView::init() scroll_layout_ = new QVBoxLayout(scroll_widget_); scroll_layout_->addStretch(1); scroll_layout_->setSpacing(0); + scroll_layout_->setObjectName("timelinescrollarea"); scroll_area_->setWidget(scroll_widget_); @@ -639,3 +639,12 @@ TimelineView::handleFailedMessage(int txnid) // Note: We do this even if the message has already been echoed. QTimer::singleShot(500, this, SLOT(sendNextPendingMessage())); } + +void +TimelineView::paintEvent(QPaintEvent *) +{ + QStyleOption opt; + opt.init(this); + QPainter p(this); + style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); +} |