Error compiling telepathy-chat-handler QTabBar* QTabWidget::tabBar() const is protected / Furkan T.

David Edmundson david at davidedmundson.co.uk
Sun Mar 6 19:25:25 CET 2011


This was quite an exciting issue:

It shouldn't compile. It's a bug in the code introduced when the mainwindow
was transferred from inheriting a KTabWidget to just using one.

However - in the latest code (KDE 4.6 +) of ktabwidget.h the call to
QTabBar::tabBar() was exposed in the line
 using QTabBar::tabBar;

Therefore it compiles with anything KDE4.6+ thanks to a hidden 'feature' in
KTabWidget.

A proper fix means rewriting a medium amount of code, or we could depend on
KDE4.6, or just drop the code (it's only used for closing tabs when middle
clicked)

For now simply comment out lines 55/56 of app/chatwindow.cpp, it's not for a
particularly important feature.

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-telepathy/attachments/20110306/78bf4a81/attachment.htm 


More information about the KDE-Telepathy mailing list