summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-10-30 17:31:34 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-10-30 17:31:34 (GMT)
commit2f76e87dba10d001ae7c3e445ef2fade9a255c2b (patch)
tree9d8d1ff2a1705ed0cb6f511e8358b48691fb7f66 /src/gui
parent1ac68040623df0ba1feaa96b5056c82e75b2faa9 (diff)
downloadQt-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')
-rw-r--r--src/gui/painting/qgraphicssystem.cpp4
-rw-r--r--src/gui/painting/qgraphicssystem_p.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/painting/qgraphicssystem.cpp b/src/gui/painting/qgraphicssystem.cpp
index 777b93d..1565c45 100644
--- a/src/gui/painting/qgraphicssystem.cpp
+++ b/src/gui/painting/qgraphicssystem.cpp
@@ -89,6 +89,10 @@ QList<QGraphicsSystemScreen *> QGraphicsSystem::screens() const
return QList<QGraphicsSystemScreen *>();
}
+QGraphicsSystemScreen::QGraphicsSystemScreen(QObject *parent)
+ : QObject(parent)
+{}
+
QGraphicsSystemScreen::~QGraphicsSystemScreen()
{
}
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;