mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-20 05:14:25 -05:00
added a layout to hasing info widget to get it left-aligned
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@943 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ed0fbb1fd7
commit
6a4d023fc9
@ -312,8 +312,23 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
|||||||
peerstatus = new PeerStatus();
|
peerstatus = new PeerStatus();
|
||||||
statusBar()->addWidget(peerstatus);
|
statusBar()->addWidget(peerstatus);
|
||||||
|
|
||||||
_hashing_info_label = new QLabel("") ;
|
QWidget *widget = new QWidget();
|
||||||
statusBar()->addPermanentWidget(_hashing_info_label);
|
QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
|
||||||
|
sizePolicy.setHorizontalStretch(0);
|
||||||
|
sizePolicy.setVerticalStretch(0);
|
||||||
|
sizePolicy.setHeightForWidth(widget->sizePolicy().hasHeightForWidth());
|
||||||
|
widget->setSizePolicy(sizePolicy);
|
||||||
|
QHBoxLayout *horizontalLayout = new QHBoxLayout(widget);
|
||||||
|
horizontalLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
|
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||||
|
_hashing_info_label = new QLabel(widget) ;
|
||||||
|
_hashing_info_label->setObjectName(QString::fromUtf8("label"));
|
||||||
|
|
||||||
|
horizontalLayout->addWidget(_hashing_info_label);
|
||||||
|
QSpacerItem *horizontalSpacer = new QSpacerItem(1000, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||||
|
horizontalLayout->addItem(horizontalSpacer);
|
||||||
|
|
||||||
|
statusBar()->addPermanentWidget(widget);
|
||||||
_hashing_info_label->hide() ;
|
_hashing_info_label->hide() ;
|
||||||
|
|
||||||
statusBar()->addPermanentWidget(statusRates = new QLabel(tr("<strong>Down:</strong> 0.00 (kB/s) | <strong>Up:</strong> 0.00 (kB/s) ")));
|
statusBar()->addPermanentWidget(statusRates = new QLabel(tr("<strong>Down:</strong> 0.00 (kB/s) | <strong>Up:</strong> 0.00 (kB/s) ")));
|
||||||
|
Loading…
Reference in New Issue
Block a user