From: asv Date: Wed, 14 Sep 2005 07:45:56 +0000 (+0000) Subject: A minor modification: Expanding size policy is set to central QxtWorckstack. why... X-Git-Tag: V3_1_0a1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cc1ab93c4490585c54b0156165852d1c2f9e3e5;p=modules%2Fgui.git A minor modification: Expanding size policy is set to central QxtWorckstack. why? - see comment in the code. --- diff --git a/src/STD/STD_TabDesktop.cxx b/src/STD/STD_TabDesktop.cxx index c5a4c66b7..020abcf54 100644 --- a/src/STD/STD_TabDesktop.cxx +++ b/src/STD/STD_TabDesktop.cxx @@ -28,6 +28,10 @@ myWorkstackAction( 0 ) setCentralWidget( base ); myWorkstack = new QtxWorkstack( base ); + // setting Expanding size policy for central workstack. If there are several widgets + // in central area of Desktop, other widgets will be added below the workstack (CATHARE, TIRPOLI modules). + // But the workstack must occupy as much space as possible -- set Expanding for it. + myWorkstack->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) ); myWorkstack->setAccel(QtxWorkstack::SplitVertical, SHIFT + Key_V); myWorkstack->setAccel(QtxWorkstack::SplitHorizontal, SHIFT + Key_H);