diff --git a/ksmserver/logout-greeter/shutdowndlg.cpp b/ksmserver/logout-greeter/shutdowndlg.cpp --- a/ksmserver/logout-greeter/shutdowndlg.cpp +++ b/ksmserver/logout-greeter/shutdowndlg.cpp @@ -64,8 +64,6 @@ #include #include -#include - #include #include @@ -124,18 +122,12 @@ context->setContextProperty(QStringLiteral("spdMethods"), mapSpdMethods); context->setContextProperty(QStringLiteral("canLogout"), KAuthorized::authorize(QStringLiteral("logout"))); - QString bootManager = KConfig(QStringLiteral(KDE_CONFDIR "/kdm/kdmrc"), KConfig::SimpleConfig) - .group("Shutdown") - .readEntry("BootManager", "None"); - context->setContextProperty(QStringLiteral("bootManager"), bootManager); + // TODO KF6 remove, used to read "BootManager" from kdmrc + context->setContextProperty(QStringLiteral("bootManager"), QStringLiteral("None")); - QStringList options; - int def, cur; - if ( KDisplayManager().bootOptions( rebootOptions, def, cur ) ) { - if ( cur > -1 ) { - def = cur; - } - } + // TODO KF6 remove, used to call KDisplayManager::bootOptions + QStringList rebootOptions; + int def = 0; QQmlPropertyMap *rebootOptionsMap = new QQmlPropertyMap(this); rebootOptionsMap->insert(QStringLiteral("options"), QVariant::fromValue(rebootOptions)); rebootOptionsMap->insert(QStringLiteral("default"), QVariant::fromValue(def));