]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL16036
authorapo <apo@opencascade.com>
Wed, 23 May 2007 08:28:02 +0000 (08:28 +0000)
committerapo <apo@opencascade.com>
Wed, 23 May 2007 08:28:02 +0000 (08:28 +0000)
 - IOLS. Slider has no cross closing button

src/VISUGUI/VisuGUI_Slider.cxx
src/VISUGUI/VisuGUI_Slider.h

index 9cb6b2b31132c4008091fa951806adeb151c9f66..e28de0dc34c87984ac119f6c4fa50453090c0a7b 100644 (file)
 VisuGUI_Slider::VisuGUI_Slider( VisuGUI_Module* theModule, 
                                VVTK_ViewWindow* theViewWindow,
                                LightApp_SelectionMgr* theSelectionMgr )
-  : QtxDockWindow( InDock, theViewWindow->getMainWindow1() ),
+  : QtxToolBar( InDock, theViewWindow->getMainWindow1() ),
     myModule( theModule ),
     myMainWindow( theViewWindow->getMainWindow1() ),
     mySelectionMgr( theSelectionMgr )
 {
-  setCaption(tr("TOOLBAR_TITLE"));
+  setLabel(tr("TOOLBAR_TITLE"));
+  setCloseMode(QDockWindow::Undocked);
 
   VISU::ViewManager_var aViewManager = VISU::GetVisuGen( myModule )->GetViewManager();
   VISU::View_var aView = aViewManager->GetCurrentView();
index 8159449993213ebdc45554884bf5f691133227d9..74b1deccf79bd8cda2d159a2826d3aad9c861546 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef VisuGUI_Slider_HeaderFile
 #define VisuGUI_Slider_HeaderFile
 
-#include "QtxDockWindow.h"
+#include "QtxToolBar.h"
 #include <vector>
 
 #include "SALOMEconfig.h"
@@ -53,7 +53,7 @@ class LightApp_SelectionMgr;
 
 class VisuGUI_Module;
 
-class VisuGUI_Slider : public QtxDockWindow
+class VisuGUI_Slider : public QtxToolBar
 {
   Q_OBJECT