aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/QMenuModel
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-06-04 15:35:59 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-06-04 15:35:59 -0400
commit4fc790c377f4ca154ea5fc8beca6fd9078edf2ee (patch)
tree240a394865e0012ed0b439c71b437771ec2182b2 /libqmenumodel/QMenuModel
parent885710fa1a01644cdc736074a06aef0616f06abe (diff)
downloadqmenumodel-4fc790c377f4ca154ea5fc8beca6fd9078edf2ee.tar.gz
qmenumodel-4fc790c377f4ca154ea5fc8beca6fd9078edf2ee.tar.bz2
qmenumodel-4fc790c377f4ca154ea5fc8beca6fd9078edf2ee.zip
Introduce UnityMenuModel and UnityQmlMenuModel
UnityMenuModel serves the same purpose as QMenuModel, but it is based on GtkMenuTracker and has a different API. GtkMenuTracker is maintained in gtk, but meant to be copy-and-pasted into other consumers of menu models. It does not introduce new dependencies. It does give us access to all the features that GMenuModel has.
Diffstat (limited to 'libqmenumodel/QMenuModel')
-rw-r--r--libqmenumodel/QMenuModel/plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqmenumodel/QMenuModel/plugin.cpp b/libqmenumodel/QMenuModel/plugin.cpp
index ee05fff..0205102 100644
--- a/libqmenumodel/QMenuModel/plugin.cpp
+++ b/libqmenumodel/QMenuModel/plugin.cpp
@@ -22,6 +22,7 @@
#include "qdbusmenumodel.h"
#include "qdbusactiongroup.h"
#include "qstateaction.h"
+#include "unityqmlmenumodel.h"
#include <QtQml>
@@ -36,6 +37,5 @@ void QMenuModelQmlPlugin::registerTypes(const char *uri)
qmlRegisterType<QDBusMenuModel>(uri, 0, 1, "QDBusMenuModel");
qmlRegisterType<QDBusActionGroup>(uri, 0, 1, "QDBusActionGroup");
-
+ qmlRegisterType<UnityQmlMenuModel>(uri, 0, 1, "UnityMenuModel");
}
-