From 780d428ad6f0c655d2bb1adad22f665956d504da Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 23 May 2007 08:28:02 +0000 Subject: [PATCH] Fix for Bug IPAL16036 - IOLS. Slider has no cross closing button --- src/VISUGUI/VisuGUI_Slider.cxx | 5 +++-- src/VISUGUI/VisuGUI_Slider.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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 -- 2.39.2