From da61bcf07e0a155cd9375842406254f3a9611fb9 Mon Sep 17 00:00:00 2001 From: sln Date: Wed, 26 Oct 2005 14:24:51 +0000 Subject: [PATCH] Merged with header (fix of bug of layout in the case when dockable window placed at the bottom of middle dock area) --- src/STD/STD_TabDesktop.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.2