From e467fd8fab3b427d8bf31dbad4e3cc5c90276c85 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 18 Nov 2009 15:24:48 +0000 Subject: [PATCH] - Improved separators style in status bar --- src/statusbar.h | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/statusbar.h b/src/statusbar.h index da53770ef..1557b86ed 100644 --- a/src/statusbar.h +++ b/src/statusbar.h @@ -51,7 +51,6 @@ private: QFrame *statusSep1; QFrame *statusSep2; QFrame *statusSep3; - QFrame *statusSep4; QLabel *connecStatusLblIcon; QTimer *refreshTimer; QWidget *container; @@ -78,15 +77,17 @@ public: DHTLbl = new QLabel(tr("DHT: %1 nodes").arg(0)); DHTLbl->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred); statusSep1 = new QFrame(); - statusSep1->setFixedWidth(1); - statusSep1->setFrameStyle(QFrame::Box); + statusSep1->setFixedSize(1, 18); + statusSep1->setFrameStyle(QFrame::VLine); + statusSep1->setFrameShadow(QFrame::Raised); statusSep2 = new QFrame(); - statusSep2->setFixedWidth(1); - statusSep2->setFrameStyle(QFrame::Box); + statusSep2->setFixedSize(1, 18); + statusSep2->setFrameStyle(QFrame::VLine); + statusSep2->setFrameShadow(QFrame::Raised); statusSep3 = new QFrame(); - statusSep3->setFixedWidth(1); - statusSep3->setFrameStyle(QFrame::Box); - statusSep4 = new QFrame(); + statusSep3->setFixedSize(1, 18); + statusSep3->setFrameStyle(QFrame::VLine); + statusSep3->setFrameShadow(QFrame::Raised); layout->addWidget(DHTLbl, 0, 0); layout->setColumnStretch(0, 1); layout->addWidget(statusSep1, 0, 1); @@ -104,8 +105,6 @@ public: bar->addPermanentWidget(container); container->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); - //container->setBaseSize(bar->width()-24, 24); - //container->setFixedWidth(bar->width()-24); bar->setStyleSheet("QWidget {padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0;};"); container->setContentsMargins(0, 0, 0, 1); bar->setContentsMargins(0, 0, 0, 0);