remove QtGui dependence of kdecore
Frerich Raabe
raabe at kde.org
Wed Jan 3 23:56:04 GMT 2007
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!
- Frerich
More information about the kde-core-devel
mailing list