aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/menunode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libqmenumodel/src/menunode.cpp')
-rw-r--r--libqmenumodel/src/menunode.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/libqmenumodel/src/menunode.cpp b/libqmenumodel/src/menunode.cpp
index 10313d5..f244f40 100644
--- a/libqmenumodel/src/menunode.cpp
+++ b/libqmenumodel/src/menunode.cpp
@@ -18,13 +18,12 @@
*/
#include "menunode.h"
+#include "qmenumodelevents.h"
#include <QMetaMethod>
#include <QDebug>
#include <QCoreApplication>
-const QEvent::Type MenuNodeItemChangeEvent::eventType = static_cast<QEvent::Type>(QEvent::registerEventType());
-
MenuNode::MenuNode(const QString &linkType, GMenuModel *model, MenuNode *parent, int pos, QObject *listener)
: m_model(model),
m_parent(parent),
@@ -250,11 +249,3 @@ void MenuNode::onItemsChanged(GMenuModel *model, gint position, gint removed, gi
self->commitOperation();
}
-
-MenuNodeItemChangeEvent::MenuNodeItemChangeEvent(MenuNode* _node, int _position, int _removed, int _added)
- : QEvent(MenuNodeItemChangeEvent::eventType),
- node(_node),
- position(_position),
- removed(_removed),
- added(_added)
-{}