Browse Source

- Improved status bar spacing

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
8160449964
  1. 32
      src/statusbar.h

32
src/statusbar.h

@ -77,35 +77,35 @@ public: @@ -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);

Loading…
Cancel
Save