diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-10-30 17:31:34 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-10-30 17:31:34 (GMT) |
commit | 2f76e87dba10d001ae7c3e445ef2fade9a255c2b (patch) | |
tree | 9d8d1ff2a1705ed0cb6f511e8358b48691fb7f66 /src/gui/painting/qgraphicssystem_p.h | |
parent | 1ac68040623df0ba1feaa96b5056c82e75b2faa9 (diff) | |
download | Qt-2f76e87dba10d001ae7c3e445ef2fade9a255c2b.zip Qt-2f76e87dba10d001ae7c3e445ef2fade9a255c2b.tar.gz Qt-2f76e87dba10d001ae7c3e445ef2fade9a255c2b.tar.bz2 |
Make QGraphicsSystemScreen a QObject
This has several advantages:
We already see the various screen drivers making QObject-based helper
classes for timers, socketNotifiers etc
Also, this gives us more introspection from applications that now can
query things from the screen.
Reviewed-by: TrustMe
Diffstat (limited to 'src/gui/painting/qgraphicssystem_p.h')
-rw-r--r-- | src/gui/painting/qgraphicssystem_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/painting/qgraphicssystem_p.h b/src/gui/painting/qgraphicssystem_p.h index ea1031f..a2d03f0 100644 --- a/src/gui/painting/qgraphicssystem_p.h +++ b/src/gui/painting/qgraphicssystem_p.h @@ -60,9 +60,11 @@ QT_BEGIN_NAMESPACE class QPixmapFilter; -class Q_GUI_EXPORT QGraphicsSystemScreen +class Q_GUI_EXPORT QGraphicsSystemScreen : public QObject { + Q_OBJECT public: + QGraphicsSystemScreen(QObject *parent = 0); virtual ~QGraphicsSystemScreen(); virtual QRect geometry() const = 0; |