remove QtGui dependence of kdecore
Simon Hausmann
hausmann at kde.org
Thu Jan 4 07:16:49 GMT 2007
On Thursday 04 January 2007 00:56, Frerich Raabe wrote:
> On Wednesday 03 January 2007 22:20, Simon Hausmann wrote:
> > 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;
> > }
>
> Use o->isWidgetType() and you can suddenly print geometries realllllly
> quickly!
Right, that is also cleaner. Aaron, don't listen to me, listen to Frerich :)
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/20070104/ef48254e/attachment.sig>
More information about the kde-core-devel
mailing list