From 900e229565ba37147824ca1d3a6a89defff8cb18 Mon Sep 17 00:00:00 2001 From: sbh Date: Fri, 18 Apr 2014 19:21:12 +0400 Subject: [PATCH] Issue #21: move ok/cancel buttons on top of the property pannel --- src/XGUI/XGUI_MainWindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.39.2