diff options
author | Nick Dedekind <nicholas.dedekind@gmail.com> | 2013-08-26 14:19:38 +0000 |
---|---|---|
committer | Tarmac <> | 2013-08-26 14:19:38 +0000 |
commit | aaa82529fb8d8601e47ae27b60814c744f1f75a3 (patch) | |
tree | 1c3a8404f9d1d3e4439a63e1d8b204aadc99799c /libqmenumodel/src/qdbusobject.h | |
parent | 50563a1ab243436c8c8fa86f88ef4a4b25b9a107 (diff) | |
parent | db47d077dcd9ee6761de828c9194d3fa2331f9ea (diff) | |
download | qmenumodel-aaa82529fb8d8601e47ae27b60814c744f1f75a3.tar.gz qmenumodel-aaa82529fb8d8601e47ae27b60814c744f1f75a3.tar.bz2 qmenumodel-aaa82529fb8d8601e47ae27b60814c744f1f75a3.zip |
Adds qt event spawning to direct glib main loop callbacks. Fixes: https://bugs.launchpad.net/bugs/1183065, https://bugs.launchpad.net/bugs/1206991.
Approved by Lars Uebernickel, PS Jenkins bot.
Diffstat (limited to 'libqmenumodel/src/qdbusobject.h')
-rw-r--r-- | libqmenumodel/src/qdbusobject.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libqmenumodel/src/qdbusobject.h b/libqmenumodel/src/qdbusobject.h index 324d3fd..1a87844 100644 --- a/libqmenumodel/src/qdbusobject.h +++ b/libqmenumodel/src/qdbusobject.h @@ -32,7 +32,7 @@ typedef struct _GDBusConnection GDBusConnection; class QDBusObject { public: - QDBusObject(); + QDBusObject(QObject* listener); ~QDBusObject(); DBusEnums::BusType busType() const; @@ -59,7 +59,11 @@ protected: virtual void objectPathChanged(const QString &objectPath) = 0; virtual void statusChanged(DBusEnums::ConnectionStatus status) = 0; + // This is not a Qbject, but we are passed events from superclass qobjects. + virtual bool event(QEvent* e); + private: + QObject* m_listener; guint m_watchId; DBusEnums::BusType m_busType; QString m_busName; |