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
KInfoCenter
Commits
b74da929
Commit
b74da929
authored
Oct 22, 2020
by
Laurent Montel
Browse files
Now it depends against new version. Old code can be removed
parent
c87bdc98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/energy/kcm.cpp
View file @
b74da929
...
...
@@ -48,13 +48,8 @@ using namespace KQuickAddons;
KCMEnergyInfo
::
KCMEnergyInfo
(
QObject
*
parent
,
const
QVariantList
&
args
)
:
ConfigModule
(
parent
,
args
)
{
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
qmlRegisterType
<
BatteryModel
>
();
qmlRegisterType
<
WakeUpModel
>
();
#else
qmlRegisterAnonymousType
<
BatteryModel
>
(
"org.kde.kinfocenter.energy.private"
,
1
);
qmlRegisterAnonymousType
<
WakeUpModel
>
(
"org.kde.kinfocenter.energy.private"
,
1
);
#endif
qmlRegisterType
<
StatisticsProvider
>
(
"org.kde.kinfocenter.energy.private"
,
1
,
0
,
"HistoryModel"
);
qmlRegisterUncreatableType
<
BatteryModel
>
(
"org.kde.kinfocenter.energy.private"
,
1
,
0
,
"BatteryModel"
,
...
...
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