Commit 9ed0b92a authored by David Redondo's avatar David Redondo 🏎
Browse files

kcm: Use qmlRegisterAnonymousType

qmlRegisterType is deprected. The type is never named from Qml.
parent f379142a
......@@ -33,7 +33,7 @@ using namespace KScreen;
KCMKScreen::KCMKScreen(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: KQuickAddons::ConfigModule(parent, data, args)
qmlRegisterAnonymousType<OutputModel>("org.kde.private.kcm.screen", 1);
qmlRegisterType<KScreen::Output>("org.kde.private.kcm.kscreen", 1, 0, "Output");
qmlRegisterUncreatableType<Control>("org.kde.private.kcm.kscreen", 1, 0, "Control", QStringLiteral("Provides only the OutputRetention enum class"));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment