[kdepim-users] chatty akonadi apps

René J.V. Bertin rjvbertin at gmail.com
Sat Nov 8 19:10:35 GMT 2014


On Saturday November 08 2014 17:49:16 Kevin Krammer wrote:

> #ifndef QT_NO_DEBUG_OUTPUT
> QDebug akDebug();
> #else
> inline QNoDebug akDebug() {
>     return QNoDebug();
> }
> #endif
> 
> Basically the same thing Qt is doing for qDebug().

Right, had I known for sure that qDebug was being used ... :)

> Configurable logging requires some infrastructure, e.g. centrally accessible 
> settings, which have not been available in Qt4 but are in Qt5.

Ahem, and the other things set through *rc files, read via KConfig (or even via QSettings)?

> Not entirely sure why it is built with that enabled when packages by 
> distributions.

It looks like the build system simply doesn't set QT_NO_DEBUG_OUTPUT. I'm not even sure how one has to do that elegantly.
Something like -DQT_NO_DEBUG_OUTPUT has to go into CFLAGS and CXXFLAGS, but CMake defines too many of them and it's too unpredictable what exactly you get in the final compiler flags.
Advice welcome here.. :)

Cheers,
René
_______________________________________________
KDE PIM users mailing list
Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users



More information about the kdepim-users mailing list