]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #545: make nested button with minimal necessary size
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 18 May 2015 11:52:21 +0000 (14:52 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 18 May 2015 11:52:21 +0000 (14:52 +0300)
src/NewGeom/NewGeom_NestedButton.cpp

index ff42227ce6a4229c1da45e2c4539287324ae69e0..787390bff336a7c2c298de9c8f4b36d17138a64a 100644 (file)
@@ -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);