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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user