use KDE_PLASMA_COMPONENTS_PLATFORM
This commit is contained in:
parent
9302b15079
commit
580c5540fa
@ -35,8 +35,11 @@ void PlasmaComponentsPlugin::registerTypes(const char *uri)
|
||||
{
|
||||
Q_ASSERT(uri == QLatin1String("org.kde.plasma.components"));
|
||||
|
||||
QString componentsPlatform = getenv("KDE_PLASMA_COMPONENTS_PLATFORM");
|
||||
if (componentsPlatform.isEmpty()) {
|
||||
KConfigGroup cg(KSharedConfig::openConfig("kdeclarativerc"), "Components-platform");
|
||||
const QString componentsPlatform = cg.readEntry("name", "desktop");
|
||||
componentsPlatform = cg.readEntry("name", "desktop");
|
||||
}
|
||||
|
||||
if (componentsPlatform == "desktop") {
|
||||
qmlRegisterType<KDialogProxy>(uri, 0, 1, "QueryDialog");
|
||||
|
Loading…
Reference in New Issue
Block a user