]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
A minor modification: Expanding size policy is set to central QxtWorckstack. why...
authorasv <asv@opencascade.com>
Wed, 14 Sep 2005 07:45:56 +0000 (07:45 +0000)
committerasv <asv@opencascade.com>
Wed, 14 Sep 2005 07:45:56 +0000 (07:45 +0000)
src/STD/STD_TabDesktop.cxx

index c5a4c66b7c2a8c7e11e5f7dbc5e213be11f18cf2..020abcf541b8bff4167a37a870f41420d82cc5e4 100644 (file)
@@ -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);