New Perspective Tabbar and Qt4.4

David Nolden david.nolden.kdevelop at art-master.de
Mon May 25 14:21:38 UTC 2009


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.

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.

Greetings, David





More information about the KDevelop-devel mailing list