From f1975cfc53412c8ce82df5d857b0d435db53cec8 Mon Sep 17 00:00:00 2001 From: Morten Johan Sorvig Date: Wed, 22 Jun 2011 11:33:17 +0200 Subject: 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. --- src/plugins/platforms/xcb/qxcbconnection.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/platforms/xcb/qxcbconnection.h') 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(this); } + void setEventDispatcher(QAbstractEventDispatcher *eventDispatcher); + const QList &screens() const { return m_screens; } int primaryScreen() const { return m_primaryScreen; } -- cgit v1.2.3