From: sbh Date: Fri, 18 Apr 2014 15:21:12 +0000 (+0400) Subject: Issue #21: move ok/cancel buttons on top of the property pannel X-Git-Tag: V_0.2~146 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=900e229565ba37147824ca1d3a6a89defff8cb18;p=modules%2Fshaper.git Issue #21: move ok/cancel buttons on top of the property pannel --- diff --git a/src/XGUI/XGUI_MainWindow.cpp b/src/XGUI/XGUI_MainWindow.cpp index fdaaf16f0..b675c5fd7 100644 --- a/src/XGUI/XGUI_MainWindow.cpp +++ b/src/XGUI/XGUI_MainWindow.cpp @@ -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; }