aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/QMenuModel/plugin.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-12-14 21:37:00 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-12-14 21:37:00 +0100
commit0924c28704013d45532fe3a0689b5634fee0e1fb (patch)
tree35e8c1c5572b3c73e74709b639630fea4fe11595 /libqmenumodel/QMenuModel/plugin.cpp
parent66af7423e1a3df332f9c62992f92639cead987b0 (diff)
parentefb9beda243ac342304e6f09ba9f0deff1e77a2b (diff)
downloadqmenumodel-0924c28704013d45532fe3a0689b5634fee0e1fb.tar.gz
qmenumodel-0924c28704013d45532fe3a0689b5634fee0e1fb.tar.bz2
qmenumodel-0924c28704013d45532fe3a0689b5634fee0e1fb.zip
Merge branch 'tari01-pr/qml-1-0'
Attributes GH PR #12: https://github.com/AyatanaIndicators/qmenumodel/pull/12
Diffstat (limited to 'libqmenumodel/QMenuModel/plugin.cpp')
-rw-r--r--libqmenumodel/QMenuModel/plugin.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/libqmenumodel/QMenuModel/plugin.cpp b/libqmenumodel/QMenuModel/plugin.cpp
index 9060f86..503827a 100644
--- a/libqmenumodel/QMenuModel/plugin.cpp
+++ b/libqmenumodel/QMenuModel/plugin.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 2012 Canonical Ltd.
+ * Copyright 2021 Robert Tari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -15,6 +16,7 @@
*
* Authors:
* Renato Araujo Oliveira Filho <renato@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include "plugin.h"
@@ -33,15 +35,15 @@ void QMenuModelQmlPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
void QMenuModelQmlPlugin::registerTypes(const char *uri)
{
- qmlRegisterUncreatableType<QMenuModel>(uri, 0, 1, "QMenuModel",
+ qmlRegisterUncreatableType<QMenuModel>(uri, 1, 0, "QMenuModel",
"QMenuModel is a interface");
- qmlRegisterUncreatableType<QStateAction>(uri, 0, 1, "QStateAction",
+ qmlRegisterUncreatableType<QStateAction>(uri, 1, 0, "QStateAction",
"QStateAction must be created by QDBusActionGroup::action");
- qmlRegisterUncreatableType<DBusEnums>(uri, 0, 1, "DBus",
+ qmlRegisterUncreatableType<DBusEnums>(uri, 1, 0, "DBus",
"DBus is only a namespace");
- qmlRegisterType<QDBusMenuModel>(uri, 0, 1, "QDBusMenuModel");
- qmlRegisterType<QDBusActionGroup>(uri, 0, 1, "QDBusActionGroup");
- qmlRegisterType<AyatanaMenuModel>(uri, 0, 1, "AyatanaMenuAction");
- qmlRegisterType<AyatanaMenuAction>(uri, 0, 1, "AyatanaMenuAction");
+ qmlRegisterType<QDBusMenuModel>(uri, 1, 0, "QDBusMenuModel");
+ qmlRegisterType<QDBusActionGroup>(uri, 1, 0, "QDBusActionGroup");
+ qmlRegisterType<AyatanaMenuModel>(uri, 1, 0, "AyatanaMenuAction");
+ qmlRegisterType<AyatanaMenuAction>(uri, 1, 0, "AyatanaMenuAction");
}