diff options
author | Morten Johan Sorvig <morten.sorvig@nokia.com> | 2011-06-22 11:33:17 +0200 |
---|---|---|
committer | Morten Johan Sorvig <morten.sorvig@nokia.com> | 2011-06-22 11:37:42 +0200 |
commit | f1975cfc53412c8ce82df5d857b0d435db53cec8 (patch) | |
tree | 67d2ef1babc0c88906e307871ae1e5761194e2c8 /src/plugins/platforms/xcb/qxcbconnection.h | |
parent | 407a6fe79824b722dbc1224a1be29d26b8fdb729 (diff) |
Make xcb work again after event dispatcher changes.
The platform plugin/event dispatcher creation order
has now been reversed and the event dispatcher
cannot be accessed during plugin construciton.
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbconnection.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h index 6cc7e13d02..bc90f5fcdc 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.h +++ b/src/plugins/platforms/xcb/qxcbconnection.h @@ -222,6 +222,7 @@ namespace QXcbAtom { }; } +class QAbstractEventDispatcher; class QXcbConnection : public QObject { Q_OBJECT @@ -231,6 +232,8 @@ public: QXcbConnection *connection() const { return const_cast<QXcbConnection *>(this); } + void setEventDispatcher(QAbstractEventDispatcher *eventDispatcher); + const QList<QXcbScreen *> &screens() const { return m_screens; } int primaryScreen() const { return m_primaryScreen; } |