From: ouv Date: Mon, 19 Jul 2010 11:33:49 +0000 (+0000) Subject: setActiveWindow() method X-Git-Tag: DIAGRAM_0_1~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0037feb32505652c7096f10c6c0a849e2c0ea090;p=modules%2Fgui.git setActiveWindow() method --- diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index 4f6d31a89..566b2953f 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -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. diff --git a/src/Qtx/QtxWorkstack.h b/src/Qtx/QtxWorkstack.h index 21d1b5f30..71965266c 100644 --- a/src/Qtx/QtxWorkstack.h +++ b/src/Qtx/QtxWorkstack.h @@ -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 );