remove QtGui dependence of kdecore
Simon Hausmann
hausmann at kde.org
Wed Jan 3 22:20:43 GMT 2007
On Wednesday 03 January 2007 22:46, Aaron J. Seigo wrote:
> On Wednesday 03 January 2007 13:48, Olivier Goffart wrote:
> > > it also prints out the name and is a rather useful feature of KDebug.
> >
> > But the QObject operator would do that if the QWidget operator is not
> > present.
>
> ah, so you're going to add a QObject operator then? (because i don't see
> one there now, and when i tested a minute ago i just get the pointer
> address)
>
> and when i said "is a rather useful feature" i also meant printing out the
> geometry. =)
You could of course also special case QWidget without a dependency on
QtGui :). Something along the lines of:
kdbgStream &operator<<(kdbgStream &stream, const QObject *o)
{
if (o->inherits("QWidget")) {
... stream << o->property("geometry") << ...
} else {
... current implementation ...
}
return stream;
}
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070103/527d6a5f/attachment.sig>
More information about the kde-core-devel
mailing list