From: stv Date: Thu, 19 Apr 2007 08:34:26 +0000 (+0000) Subject: no message X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FSPDev_2006;p=modules%2Fgui.git no message --- diff --git a/src/Qtx/QtxWorkspaceAction.cxx b/src/Qtx/QtxWorkspaceAction.cxx index c630ff47d..98cb786fc 100644 --- a/src/Qtx/QtxWorkspaceAction.cxx +++ b/src/Qtx/QtxWorkspaceAction.cxx @@ -24,6 +24,7 @@ #include #include #include +#include QtxWorkspaceAction::QtxWorkspaceAction( QWorkspace* ws, QObject* parent, const char* name ) : QtxAction( tr( "Controls windows into workspace" ), tr( "Workspace management" ), 0, parent, name ), @@ -234,8 +235,10 @@ void QtxWorkspaceAction::tileVertical() if ( !count ) return; - int y = 0; + if ( wrkSpace->activeWindow() && wrkSpace->activeWindow()->testWState( WState_Maximized ) ) + wrkSpace->activeWindow()->showNormal(); + int y = 0; int heightForEach = wrkSpace->height() / count; for ( QWidgetListIt it( winList ); it.current(); ++it ) { @@ -248,6 +251,9 @@ void QtxWorkspaceAction::tileVertical() win->hide(); win->showNormal(); } + + QApplication::sendPostedEvents( 0, QEvent::ShowNormal ); + int prefH = win->minimumHeight() + win->parentWidget()->baseSize().height(); int actualH = QMAX( heightForEach, prefH ); @@ -274,6 +280,9 @@ void QtxWorkspaceAction::tileHorizontal() if ( !count ) return; + if ( wrkSpace->activeWindow() && wrkSpace->activeWindow()->testWState( WState_Maximized ) ) + wrkSpace->activeWindow()->showNormal(); + int x = 0; int widthForEach = wrkSpace->width() / count; for ( QWidgetListIt it( winList ); it.current(); ++it ) @@ -287,6 +296,9 @@ void QtxWorkspaceAction::tileHorizontal() win->hide(); win->showNormal(); } + + QApplication::sendPostedEvents( 0, QEvent::ShowNormal ); + int prefW = win->minimumWidth(); int actualW = QMAX( widthForEach, prefW );