The new kDebug()
Thiago Macieira
thiago at kde.org
Sun Jul 29 16:12:56 BST 2007
I have finished the new kDebug family of functions and I will commit them
tomorrow.
I'm still evaluating the impact of the changes, but it should be very
limited. The major change is that there's no "form" function anymore in
QDebug, so all code that was using kdbgstream::form has to change.
Besides that, the output got a lot uglier. There are stray newlines
everywhere and a lot more spaces between items. Aside from being uglier,
everything is still fully functional. So no changes in the UI will be
noticed.
There's no way with QDebug to trap the "endl" that's everywhere in our
code. I'll provide a *temporary* hack in the backend to remove them, but
I'll remove it before the next beta. Please get rid of the endl.
There's also no way to use our operator<< for QObject. So it's using the
default Qt-provided one. Complain to Trolltech if you want more debugging
output from their operator.
At least the QVariant-based operator<< are gone.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdebug-on-qdebug.patch.zip
Type: application/x-zip
Size: 10340 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070729/20a9c468/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070729/20a9c468/attachment.sig>
More information about the kde-core-devel
mailing list