]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #21: move ok/cancel buttons on top of the property pannel
authorsbh <sergey.belash@opencascade.com>
Fri, 18 Apr 2014 15:21:12 +0000 (19:21 +0400)
committersbh <sergey.belash@opencascade.com>
Fri, 18 Apr 2014 15:21:12 +0000 (19:21 +0400)
src/XGUI/XGUI_MainWindow.cpp

index fdaaf16f0e00e6524f6c4c581b35cda2f2d6666e..b675c5fd7d59639c83e5075dec96d6d27092df76 100644 (file)
@@ -139,11 +139,6 @@ QDockWidget* XGUI_MainWindow::createPropertyPanel()
   aMainLay->setContentsMargins(3, 3, 3, 3);
   aPropPanel->setWidget(aContent);
 
-  QWidget* aCustomWidget = new QWidget(aContent);
-  aCustomWidget->setObjectName(XGUI::PROP_PANEL_WDG);
-  aMainLay->addWidget(aCustomWidget);
-  aMainLay->addStretch(1);
-
   QFrame* aFrm = new QFrame(aContent);
   aFrm->setFrameStyle(QFrame::Sunken);
   aFrm->setFrameShape(QFrame::Panel);
@@ -167,6 +162,11 @@ QDockWidget* XGUI_MainWindow::createPropertyPanel()
   //connect(aBtn, SIGNAL(clicked()), this, SIGNAL(propertyClosePressed()));
   aBtnLay->addWidget(aBtn);
 
+  QWidget* aCustomWidget = new QWidget(aContent);
+  aCustomWidget->setObjectName(XGUI::PROP_PANEL_WDG);
+  aMainLay->addWidget(aCustomWidget);
+  aMainLay->addStretch(1);
+
   return aPropPanel;
 }