]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #25: forbid top area for dock windows
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 4 Sep 2014 13:52:18 +0000 (17:52 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 4 Sep 2014 13:52:18 +0000 (17:52 +0400)
src/XGUI/XGUI_MainWindow.cpp
src/XGUI/XGUI_Workshop.cpp

index 6d619d8181686400e8dac5bd9008a05dede0ca30..b1171dc64e1c02076b9f6984c2d87ffd62f725ff 100644 (file)
@@ -89,8 +89,8 @@ void XGUI_MainWindow::dockPythonConsole()
   myMenuBar->removeConsole();
   QDockWidget* aDock = new QDockWidget(this);
   aDock->setFeatures(QDockWidget::AllDockWidgetFeatures | QDockWidget::DockWidgetVerticalTitleBar);
-//  aDock->setAllowedAreas(
-//      Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::BottomDockWidgetArea);
+  aDock->setAllowedAreas(
+      Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::BottomDockWidgetArea);
   aDock->setMinimumHeight(0);
   aDock->setWindowTitle("Console");
   aDock->setWidget(myPythonConsole);
index 44fc8d1f7bdf669138a52cf587c44d9a85e28278..be21a28256d55f988f769f812c1bfb8aaca47be8 100644 (file)
@@ -827,7 +827,7 @@ QList<QAction*> XGUI_Workshop::getModuleCommands() const
 QDockWidget* XGUI_Workshop::createObjectBrowser(QWidget* theParent)
 {
   QDockWidget* aObjDock = new QDockWidget(theParent);
-  //aObjDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
+  aObjDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::BottomDockWidgetArea);
   aObjDock->setWindowTitle(tr("Object browser"));
   aObjDock->setStyleSheet(
       "::title { position: relative; padding-left: 5px; text-align: left center }");
@@ -851,6 +851,7 @@ void XGUI_Workshop::createDockWidgets()
   QDockWidget* aObjDock = createObjectBrowser(aDesktop);
   aDesktop->addDockWidget(Qt::LeftDockWidgetArea, aObjDock);
   myPropertyPanel = new XGUI_PropertyPanel(aDesktop);
+  myPropertyPanel->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::BottomDockWidgetArea);
   aDesktop->addDockWidget(Qt::LeftDockWidgetArea, myPropertyPanel);
   hidePropertyPanel();  //<! Invisible by default
   hideObjectBrowser();