]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
setActiveWindow() method
authorouv <ouv@opencascade.com>
Mon, 19 Jul 2010 11:33:49 +0000 (11:33 +0000)
committerouv <ouv@opencascade.com>
Mon, 19 Jul 2010 11:33:49 +0000 (11:33 +0000)
src/Qtx/QtxWorkstack.cxx
src/Qtx/QtxWorkstack.h

index 4f6d31a89b50e36b274581725369d31b4ea09cae..566b2953f112549f5422dbcdf4629238f00c242d 100644 (file)
@@ -1578,6 +1578,16 @@ QWidget* QtxWorkstack::activeWindow() const
   return myWin;
 }
 
+/*!
+  \brief Set active widget
+  \param wid widget to activate
+*/
+void QtxWorkstack::setActiveWindow( QWidget* wid )
+{
+  if( activeArea() )
+    activeArea()->setActiveWidget( wid );
+}
+
 /*!
   \brief Split workstack.
 
index 21d1b5f30681cba252e60a551df7b85a202c73d4..71965266ce405b379764bbaa6b22d7450280c8a1 100644 (file)
@@ -75,6 +75,7 @@ public:
   QWidgetList         splitWindowList() const;
 
   QWidget*            activeWindow() const;
+  void                setActiveWindow( QWidget* );
 
   int                 accel( const int ) const;
   void                setAccel( const int, const int );