Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KScreen
Commits
9ed0b92a
Commit
9ed0b92a
authored
Feb 17, 2022
by
David Redondo
🏎
Browse files
kcm: Use qmlRegisterAnonymousType
qmlRegisterType is deprected. The type is never named from Qml.
parent
f379142a
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcm/kcm.cpp
View file @
9ed0b92a
...
...
@@ -33,7 +33,7 @@ using namespace KScreen;
KCMKScreen
::
KCMKScreen
(
QObject
*
parent
,
const
KPluginMetaData
&
data
,
const
QVariantList
&
args
)
:
KQuickAddons
::
ConfigModule
(
parent
,
data
,
args
)
{
qmlRegisterType
<
OutputModel
>
();
qmlRegister
Anonymous
Type
<
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"
));
Log
::
instance
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment