kDebug formatting

David Jarvie lists at astrojar.org.uk
Mon Aug 6 01:34:48 BST 2007


On Sunday 05 August 2007 23:24:51 Thiago Macieira wrote:
> David Jarvie wrote:
> >Is there an easy way to omit spaces between parameters as output by
> > kDebug?
>
> nospace()
>
> kDebug and qDebug are now the same. What is valid for one is valid for the
> other and vice-versa.

I see. Thanks.

> Anyways, the line above should now be:
> 	kWarning() << "Error reading file" << fileName;
> since fileName is a QString, QDebug will automatically add the quotes.

Do you mean that _all_ QString's passed will be automatically quoted? If not, 
that would seem to imply that QDebug parses QString parameters to check 
whether they seem to be file name syntax. Unfortunately, QDebug isn't 
particularly well documented.

-- 
David Jarvie.
KAlarm author and maintainer.
http://www.astrojar.org.uk/kalarm




More information about the kde-core-devel mailing list