Prevent resizing of the "Controls" button

The "Controls" button will now keep its minimal size when the
ControllerView is resized.
This commit is contained in:
Michael Gregorius
2015-08-18 18:23:40 +02:00
parent ef449f5bae
commit 4571d14029

View File

@@ -62,6 +62,9 @@ ControllerView::ControllerView( Controller * _model, QWidget * _parent ) :
vBoxLayout->addLayout(hBox);
QLabel *label = new QLabel( "<b>" + _model->displayName() + "</b>", this);
QSizePolicy sizePolicy = label->sizePolicy();
sizePolicy.setHorizontalStretch(1);
label->setSizePolicy(sizePolicy);
hBox->addWidget(label);