Commit b74da929 authored by Laurent Montel's avatar Laurent Montel 😁

Now it depends against new version. Old code can be removed

parent c87bdc98
......@@ -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",
......
Markdown is supported
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