From 36426c5ef4e8d3c8e850996c447d6999e21479c6 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Thu, 4 Oct 2012 12:04:46 +0200 Subject: Move the enums into a class that inherits QObject, so they can be exposed and used directly from QML. --- src/QMenuModel/plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/QMenuModel/plugin.cpp') diff --git a/src/QMenuModel/plugin.cpp b/src/QMenuModel/plugin.cpp index 494dd2c..ec51ae9 100644 --- a/src/QMenuModel/plugin.cpp +++ b/src/QMenuModel/plugin.cpp @@ -32,6 +32,8 @@ void QMenuModelQmlPlugin::registerTypes(const char *uri) "QMenuModel is a interface"); qmlRegisterUncreatableType(uri, 0, 1, "QStateAction", "QStateAction must be created by QDBusActionGroup::action"); + qmlRegisterUncreatableType(uri, 0, 1, "DBus", + "DBus is only a namespace"); qmlRegisterType(uri, 0, 1, "QDBusMenuModel"); qmlRegisterType(uri, 0, 1, "QDBusActionGroup"); -- cgit v1.2.3