diff options
author | Nick Dedekind <nicholas.dedekind@gmail.com> | 2013-07-30 12:23:42 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-07-30 12:23:42 +0200 |
commit | d1c96de04570d8365c2ab2fde597ccd21c7a3dc2 (patch) | |
tree | 6abe5ac6cea1593c4effdea00c3087e4c9f37ede /libqmenumodel/QMenuModel | |
parent | d47194b0794968fa7713a8c7c9cfec7f1e4f8a17 (diff) | |
download | qmenumodel-d1c96de04570d8365c2ab2fde597ccd21c7a3dc2.tar.gz qmenumodel-d1c96de04570d8365c2ab2fde597ccd21c7a3dc2.tar.bz2 qmenumodel-d1c96de04570d8365c2ab2fde597ccd21c7a3dc2.zip |
Add action role (replacing actionState role)
Diffstat (limited to 'libqmenumodel/QMenuModel')
-rw-r--r-- | libqmenumodel/QMenuModel/plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libqmenumodel/QMenuModel/plugin.cpp b/libqmenumodel/QMenuModel/plugin.cpp index 0629099..c1a5e40 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 "unitymenuaction.h" #include "unitymenumodel.h" #include "unitythemediconprovider.h" @@ -40,6 +41,8 @@ void QMenuModelQmlPlugin::registerTypes(const char *uri) "QStateAction must be created by QDBusActionGroup::action"); qmlRegisterUncreatableType<DBusEnums>(uri, 0, 1, "DBus", "DBus is only a namespace"); + qmlRegisterUncreatableType<UnityMenuAction>(uri, 0, 1, "UnityMenuAction", + "UnityMenuAction must be created by UnityMenuModel"); qmlRegisterType<QDBusMenuModel>(uri, 0, 1, "QDBusMenuModel"); qmlRegisterType<QDBusActionGroup>(uri, 0, 1, "QDBusActionGroup"); |