From: vsv Date: Mon, 18 May 2015 11:52:21 +0000 (+0300) Subject: Issue #545: make nested button with minimal necessary size X-Git-Tag: V_1.2.0~151 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=efd3f8003cb629766ef297a0f30e6893c104cfb3;p=modules%2Fshaper.git Issue #545: make nested button with minimal necessary size --- diff --git a/src/NewGeom/NewGeom_NestedButton.cpp b/src/NewGeom/NewGeom_NestedButton.cpp index ff42227ce..787390bff 100644 --- a/src/NewGeom/NewGeom_NestedButton.cpp +++ b/src/NewGeom/NewGeom_NestedButton.cpp @@ -46,6 +46,9 @@ QWidget * NewGeom_NestedButton::createWidget(QWidget * theParent) QHBoxLayout* aBoxLay = new QHBoxLayout(myButtonFrame); aBoxLay->setContentsMargins(2, 0, 0, 0); aBoxLay->setSpacing(1); + QSizePolicy aSizePolicy; + aSizePolicy.setControlType(QSizePolicy::ToolButton); + myButtonFrame->setSizePolicy(aSizePolicy); myThisButton = new QToolButton(myButtonFrame); myThisButton->setDefaultAction(this);