X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fverticaldock.cpp;h=fc0125b1776df17a09f97a98f604460b6db6eea2;hp=4ac07fe46b364358970ab281d54403436d0afa7d;hb=9861cef46e8a052140070b4c643092f9c62aa6df;hpb=5225cf288d73e76905f85380ec52418c3b04efee diff --git a/src/qtui/verticaldock.cpp b/src/qtui/verticaldock.cpp index 4ac07fe4..fc0125b1 100644 --- a/src/qtui/verticaldock.cpp +++ b/src/qtui/verticaldock.cpp @@ -20,6 +20,7 @@ #include "verticaldock.h" +#include #include #include @@ -34,7 +35,7 @@ QSize VerticalDockTitle::sizeHint() const { } QSize VerticalDockTitle::minimumSizeHint() const { - return QSize(10, 15); + return QSize(10, 10); } void VerticalDockTitle::paintEvent(QPaintEvent *event) { @@ -44,16 +45,13 @@ void VerticalDockTitle::paintEvent(QPaintEvent *event) { if(rect().isValid() && rect().height() > minimumSizeHint().height()) { for(int i = 0; i < 2; i++) { - QPoint topLeft = rect().topLeft() + QPoint(3 + i*2, 5); - QPoint bottomRight = rect().topLeft() + QPoint(3 + i*2, rect().height() - 5); + QPoint topLeft = rect().topLeft() + QPoint(3 + i*2, 2); + QPoint bottomRight = rect().topLeft() + QPoint(3 + i*2, rect().height() - 2); qDrawShadeLine(&painter, topLeft, bottomRight, palette()); } } - } - - // ============================== // Vertical Dock // ============================== @@ -67,6 +65,7 @@ VerticalDock::VerticalDock(QWidget *parent, Qt::WindowFlags flags) : QDockWidget(parent, flags) { setDefaultTitleWidget(); + setContentsMargins(0, 0, 0, 0); } void VerticalDock::setDefaultTitleWidget() {