aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src
diff options
context:
space:
mode:
authorNick Dedekind <nicholas.dedekind@gmail.com>2013-08-09 08:10:21 +0100
committerNick Dedekind <nicholas.dedekind@gmail.com>2013-08-09 08:10:21 +0100
commit9be29519eb308eae8a2fafe7441324a53220726b (patch)
treeb4c0d7969ddcd6488d4ec1da830b7004ae5beb7d /libqmenumodel/src
parentc6cb726c5694f8a35711a48a7bf5e2a6723aeba8 (diff)
downloadqmenumodel-9be29519eb308eae8a2fafe7441324a53220726b.tar.gz
qmenumodel-9be29519eb308eae8a2fafe7441324a53220726b.tar.bz2
qmenumodel-9be29519eb308eae8a2fafe7441324a53220726b.zip
bit of code cleanup
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r--libqmenumodel/src/qdbusactiongroup.cpp2
-rw-r--r--libqmenumodel/src/qdbusmenumodel.cpp3
-rw-r--r--libqmenumodel/src/qdbusobject.h1
3 files changed, 2 insertions, 4 deletions
diff --git a/libqmenumodel/src/qdbusactiongroup.cpp b/libqmenumodel/src/qdbusactiongroup.cpp
index 48aa882..72e3302 100644
--- a/libqmenumodel/src/qdbusactiongroup.cpp
+++ b/libqmenumodel/src/qdbusactiongroup.cpp
@@ -22,7 +22,6 @@
#include "converter.h"
// Qt
-#include <QDebug>
#include <QCoreApplication>
extern "C" {
@@ -231,7 +230,6 @@ bool QDBusActionGroup::event(QEvent* e)
{
if (QDBusObject::event(e)) {
return true;
-
} else if (e->type() == DBusActionVisiblityEvent::eventType) {
DBusActionVisiblityEvent *dave = static_cast<DBusActionVisiblityEvent*>(e);
diff --git a/libqmenumodel/src/qdbusmenumodel.cpp b/libqmenumodel/src/qdbusmenumodel.cpp
index 572ad75..29ee364 100644
--- a/libqmenumodel/src/qdbusmenumodel.cpp
+++ b/libqmenumodel/src/qdbusmenumodel.cpp
@@ -24,7 +24,6 @@ extern "C" {
#include "qdbusmenumodel.h"
#include <QCoreApplication>
-#include <QDebug>
/*!
\qmltype QDBusMenuModel
@@ -116,7 +115,7 @@ void QDBusMenuModel::serviceAppear(GDBusConnection *connection)
MenuModelEvent mme(model);
QCoreApplication::sendEvent(this, &mme);
- //setModel take care of the ref
+ //event handling takes care of the ref
g_object_unref(model);
}
diff --git a/libqmenumodel/src/qdbusobject.h b/libqmenumodel/src/qdbusobject.h
index 747a7fc..3a00301 100644
--- a/libqmenumodel/src/qdbusobject.h
+++ b/libqmenumodel/src/qdbusobject.h
@@ -60,6 +60,7 @@ 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: