aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: