aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/qdbusobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libqmenumodel/src/qdbusobject.cpp')
-rw-r--r--libqmenumodel/src/qdbusobject.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/libqmenumodel/src/qdbusobject.cpp b/libqmenumodel/src/qdbusobject.cpp
index f289bf9..be9fb93 100644
--- a/libqmenumodel/src/qdbusobject.cpp
+++ b/libqmenumodel/src/qdbusobject.cpp
@@ -23,12 +23,11 @@ extern "C" {
}
#include "qdbusobject.h"
+#include "qmenumodelevents.h"
#include <QDebug>
#include <QCoreApplication>
-const QEvent::Type DbusObjectServiceEvent::eventType = static_cast<QEvent::Type>(QEvent::registerEventType());
-
/*!
\qmltype QDBusObject
\brief The QDBusObject is a base class
@@ -216,20 +215,3 @@ bool QDBusObject::event(QEvent* e)
}
return false;
}
-
-DbusObjectServiceEvent::DbusObjectServiceEvent(GDBusConnection* _connection, bool _visible)
- : QEvent(DbusObjectServiceEvent::eventType),
- connection(_connection),
- visible(_visible)
-{
- if (connection) {
- g_object_ref(connection);
- }
-}
-
-DbusObjectServiceEvent::~DbusObjectServiceEvent()
-{
- if (connection) {
- g_object_unref(connection);
- }
-}