split( Qt::Vertical );
}
+/*!
+ \brief Activates window, make its container tab active.
+ \param theWnd window to activate.
+*/
+void QtxWorkstack::setActiveWindow( QWidget* theWnd )
+{
+ QtxWorkstackArea* aWndArea = wgArea( theWnd );
+ if ( aWndArea == 0 )
+ return;
+
+ aWndArea->setActiveWidget( theWnd );
+
+ QWidget* aCurrFocus = QApplication::focusWidget();
+ if ( !theWnd->isAncestorOf( aCurrFocus ) )
+ {
+ QWidget* aLastSubFocus = theWnd->focusWidget();
+ if ( aLastSubFocus )
+ aLastSubFocus->setFocus();
+ else
+ theWnd->setFocus();
+ }
+
+ setActiveArea( aWndArea );
+}
+
/*!
\brief Called when user activates "Rename" menu item.
return myWorkstack;
}
+/*!
+ \brief set subwindow of the desktop to be the active one.
+ \param theWnd the window to be set as active.
+*/
+void STD_TabDesktop::setActiveWindow( QWidget* theWnd )
+{
+ workstack()->setActiveWindow( theWnd );
+}
+
/*!
Emit window activated.
*/