New Perspective Tabbar and Qt4.4

Andreas Pakulat apaku at gmx.de
Mon May 25 15:16:05 UTC 2009


On 25.05.09 16:21:38, David Nolden wrote:
> Am Montag 25 Mai 2009 15:40:46 schrieb Andreas Pakulat:
> > On 25.05.09 15:19:57, Andreas Pakulat wrote:
> > > Hi,
> > >
> > > I've just made trunk compile against KDE4.2/Qt4.4, which of course broke
> > > due to the new perspective tabbar which uses Qt4.5 API for QTabBar. I
> > > hoped that not too much would break without the 3 calls that are in an
> > > ifdef now, but unfortunately the result is totally useless (see attached
> > > image).
> > >
> > > The question is: Is it easy enough to disable that tabbar to put the
> > > relevant code in a #if QT_VERSION > 4.5? If thats not feasible the only
> > > other option would be requiring Qt4.5/KDE4.3 which I'm not very fond of
> > > at this time (not even an RC released for KDE4.3).
> 
> What were the calls you had to comment out? This looks like the button widgets 
> are somehow not put into the tabs.

See the code :) setDocumentMode, setTabButtons and one more that I can't
recall off-hand.
 
> To disable the tabbars under Qt 4.4, you can just put the menuBar()-
> >setCornerWidget(...) in sublime/mainwindow.cpp into an #ifdef, and the tabbar 
> should not be visible any more, without causing problems.

Ok, thats easy enough, so I'll do that and we should keep the toolbuttons
until we require Qt4.5.

Andreas

-- 
The time is right to make new friends.




More information about the KDevelop-devel mailing list