summary refs log tree commit diff
path: root/src/TopRoomBar.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-18 17:38:57 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-18 17:38:57 +0200
commit48ee36f6b2bcb9d25eec298dda2e77878ab321e1 (patch)
treecc85c82b2f290f68c33f011cb0f1652356d149f0 /src/TopRoomBar.cc
parentAdd border line above the text input (diff)
downloadnheko-48ee36f6b2bcb9d25eec298dda2e77878ab321e1.tar.xz
Add border in community list & minor refactorings (#204)
Diffstat (limited to 'src/TopRoomBar.cc')
-rw-r--r--src/TopRoomBar.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/TopRoomBar.cc b/src/TopRoomBar.cc

index c4ce3d7d..73891881 100644 --- a/src/TopRoomBar.cc +++ b/src/TopRoomBar.cc
@@ -151,6 +151,9 @@ TopRoomBar::paintEvent(QPaintEvent *event) QPainter painter(this); style()->drawPrimitive(QStyle::PE_Widget, &option, &painter, this); + painter.setPen(QPen(borderColor())); + painter.drawLine(QPointF(0, height()), QPointF(width(), height())); + // Number of pixels that we can move sidebar splitter per frame. If label contains // text which fills entire it's width then label starts blocking it's layout from // shrinking. Making label little bit shorter leaves some space for it to shrink.