Commit db079a64 authored by Alvaro Sanchez's avatar Alvaro Sanchez Committed by Kitware Robot

Merge topic 'fix-resize-dock-oper-panel' into release

5dc157ce Adjusted MinSize in qtModelOperationWidget's QFrame.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !907
parents a5276bf9 5dc157ce
...@@ -299,10 +299,13 @@ bool qtModelOperationWidget::initOperatorUI(const smtk::model::OperatorPtr& brOp ...@@ -299,10 +299,13 @@ bool qtModelOperationWidget::initOperatorUI(const smtk::model::OperatorPtr& brOp
this->setSession(bs.session()); this->setSession(bs.session());
QFrame* opParent = new QFrame(this); QFrame* opParent = new QFrame(this);
// Since the parent widget currently is a QScrollArea, it is necessary // Since the parent of `this` currently is a QScrollArea, it is necessary
// to ensure the widget provides a suitable sizeHint, so a minimum is set. // to ensure `this` and its children provide a suitable sizeHint, so a
// minimum is set in opParent.
// http://doc.qt.io/qt-5/qscrollarea.html#details // http://doc.qt.io/qt-5/qscrollarea.html#details
opParent->setMinimumSize(500, 0); // The minimum in opParent is small, such that it allows certain flexibility
// for the top parent (QDockWidget, QDialog, etc.) to resize `this` properly.
opParent->setMinimumSize(50, 0);
opParent->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); opParent->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
QVBoxLayout* opLayout = new QVBoxLayout(opParent); QVBoxLayout* opLayout = new QVBoxLayout(opParent);
opLayout->setMargin(0); opLayout->setMargin(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment