kdelibs/kutils

F@lk Brettschneider falk.brettschneider at gmx.de
Sun Nov 30 23:26:02 UTC 2003


Hi,
I'm sorry for not being able to fix the problem in time. Please, revert 
my latest commit to KMultiTabBar.
I searched for hours, but it's very sad that I don't find that little 
single line I must call to force a size-adaption of the bar that 
contains the buttons. One little fix would have a big effect. Jowenn, 
maybe can be the guru (?)

Manually, you can do that necessary resize of the bar by mouse-clicking 
on a button which will open the toolview. A second mouseclick will hide 
the toolview again and - Heureka - it also resizes the multitab-bar back 
to a sane geometry. This behaviour from the two button clicks just must 
be called by software in KMultiTabBarInternal::layoutButtons....(). Does 
anybody see that trick? I don't find it in time. :-(

Sorry about that. So KDEV3 will not have correct IDEAl mode even in the 
Beta2 release.

Still searching on.... lack of time though.....
Thanks for your patience.... I just tried to satisfy all the various 
wishes and demands....
CU, F at lk

P.S.: the suggested fix of Hamish didn't help here.... Nevertheless, 
thanks a lot Hamish for your trial. :-)

Hamish Rodda wrote:

> On Sun, 30 Nov 2003 07:22 am, Amilcar do Carmo Lucas wrote:
>
> Current cvs produces this ugly screen shot:
> http://www.ida.ing.tu-bs.de/people/amilcar/Kmdi.jpg
>
> And the width of the side bars grows every time I open a project.
> The height of the bottom bar also grows.
>
>
> I've attached a patch I worked up and sent to falk... it's mostly 
> correct,
> still an issue if the buttons don't wrap around though...
>
> Cheers,
> Hamish.

Index: kmultitabbar.cpp
===================================================================
RCS file: /home/kde/kdelibs/kutils/kmultitabbar.cpp,v
retrieving revision 1.47
diff -u -3 -p -r1.47 kmultitabbar.cpp
--- kmultitabbar.cpp    29 Nov 2003 02:36:33 -0000    1.47
+++ kmultitabbar.cpp    29 Nov 2003 10:21:43 -0000
@@ -675,11 +675,13 @@ KMultiTabBar::KMultiTabBar(KMultiTabBarM
     if (bm==Vertical)
     {
         m_l=new QVBoxLayout(this);
+        setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding, true);
 //        setFixedWidth(24);
     }
     else
     {
         m_l=new QHBoxLayout(this);
+        setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed, true);
 //        setFixedHeight(24);
     }
     m_l->setMargin(0);
@@ -697,6 +699,7 @@ KMultiTabBar::KMultiTabBar(KMultiTabBarM
     m_btnTabSep->setLineWidth(2);
     m_btnTabSep->hide();
    
+    updateGeometry();
 }
 
 KMultiTabBar::~KMultiTabBar() {






More information about the KDevelop-devel mailing list