From 81604499642270e662898f890344ad48005501e6 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 18 Nov 2009 15:56:40 +0000 Subject: [PATCH] - Improved status bar spacing --- src/statusbar.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/statusbar.h b/src/statusbar.h index 1557b86ed..07f69a744 100644 --- a/src/statusbar.h +++ b/src/statusbar.h @@ -77,35 +77,35 @@ public: DHTLbl = new QLabel(tr("DHT: %1 nodes").arg(0)); DHTLbl->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred); statusSep1 = new QFrame(); - statusSep1->setFixedSize(1, 18); + statusSep1->setFixedSize(3, 18); statusSep1->setFrameStyle(QFrame::VLine); statusSep1->setFrameShadow(QFrame::Raised); statusSep2 = new QFrame(); - statusSep2->setFixedSize(1, 18); + statusSep2->setFixedSize(3, 18); statusSep2->setFrameStyle(QFrame::VLine); statusSep2->setFrameShadow(QFrame::Raised); statusSep3 = new QFrame(); - statusSep3->setFixedSize(1, 18); + statusSep3->setFixedSize(3, 18); statusSep3->setFrameStyle(QFrame::VLine); statusSep3->setFrameShadow(QFrame::Raised); - layout->addWidget(DHTLbl, 0, 0); - layout->setColumnStretch(0, 1); - layout->addWidget(statusSep1, 0, 1); - layout->setColumnStretch(1, 0); + layout->addWidget(DHTLbl, 0, 0, Qt::AlignRight); + //layout->setColumnStretch(0, 10); + layout->addWidget(statusSep1, 0, 1, Qt::AlignRight); + //layout->setColumnStretch(1, 1); layout->addWidget(connecStatusLblIcon, 0, 2); - layout->setColumnStretch(2, 0); - layout->addWidget(statusSep2, 0, 3); - layout->setColumnStretch(3, 0); + //layout->setColumnStretch(2, 1); + layout->addWidget(statusSep2, 0, 3, Qt::AlignLeft); + //layout->setColumnStretch(3, 1); layout->addWidget(dlSpeedLbl, 0, 4); - layout->setColumnStretch(4, 1); - layout->addWidget(statusSep3, 0, 5); - layout->setColumnStretch(5, 0); - layout->addWidget(upSpeedLbl, 0, 6); - layout->setColumnStretch(6, 1); + //layout->setColumnStretch(4, 10); + layout->addWidget(statusSep3, 0, 5, Qt::AlignLeft); + //layout->setColumnStretch(5, 10); + layout->addWidget(upSpeedLbl, 0, 6, Qt::AlignLeft); + //layout->setColumnStretch(6, 10); bar->addPermanentWidget(container); container->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); - bar->setStyleSheet("QWidget {padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0;};"); + bar->setStyleSheet("QWidget {padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0;}\n"); container->setContentsMargins(0, 0, 0, 1); bar->setContentsMargins(0, 0, 0, 0); container->setFixedHeight(24);