From: apo Date: Wed, 23 May 2007 08:28:02 +0000 (+0000) Subject: Fix for Bug IPAL16036 X-Git-Tag: V4_0~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=780d428ad6f0c655d2bb1adad22f665956d504da;p=modules%2Fvisu.git Fix for Bug IPAL16036 - IOLS. Slider has no cross closing button --- diff --git a/src/VISUGUI/VisuGUI_Slider.cxx b/src/VISUGUI/VisuGUI_Slider.cxx index 9cb6b2b3..e28de0dc 100644 --- a/src/VISUGUI/VisuGUI_Slider.cxx +++ b/src/VISUGUI/VisuGUI_Slider.cxx @@ -72,12 +72,13 @@ 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(); diff --git a/src/VISUGUI/VisuGUI_Slider.h b/src/VISUGUI/VisuGUI_Slider.h index 81594499..74b1decc 100644 --- a/src/VISUGUI/VisuGUI_Slider.h +++ b/src/VISUGUI/VisuGUI_Slider.h @@ -28,7 +28,7 @@ #ifndef VisuGUI_Slider_HeaderFile #define VisuGUI_Slider_HeaderFile -#include "QtxDockWindow.h" +#include "QtxToolBar.h" #include #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