Changeset View
Changeset View
Standalone View
Standalone View
shell/scripting/applet.cpp
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 66 | if (!app) { | |||
---|---|---|---|---|---|
67 | d->configGroup = KConfigGroup(); | 67 | d->configGroup = KConfigGroup(); | ||
68 | d->configGroupPath.clear(); | 68 | d->configGroupPath.clear(); | ||
69 | return; | 69 | return; | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | d->configGroup = app->config(); | 72 | d->configGroup = app->config(); | ||
73 | d->configGroupPath = groupNames; | 73 | d->configGroupPath = groupNames; | ||
74 | 74 | | |||
75 | foreach (const QString &groupName, groupNames) { | 75 | for (const QString &groupName : groupNames) { | ||
76 | d->configGroup = KConfigGroup(&d->configGroup, groupName); | 76 | d->configGroup = KConfigGroup(&d->configGroup, groupName); | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | d->inWallpaperConfig = !groupNames.isEmpty() && groupNames.first() == QLatin1String("Wallpaper"); | 79 | d->inWallpaperConfig = !groupNames.isEmpty() && groupNames.first() == QLatin1String("Wallpaper"); | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | QStringList Applet::currentConfigGroup() const | 82 | QStringList Applet::currentConfigGroup() const | ||
83 | { | 83 | { | ||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 147 | if (!app) { | |||
148 | d->globalConfigGroup = KConfigGroup(); | 148 | d->globalConfigGroup = KConfigGroup(); | ||
149 | d->globalConfigGroupPath.clear(); | 149 | d->globalConfigGroupPath.clear(); | ||
150 | return; | 150 | return; | ||
151 | } | 151 | } | ||
152 | 152 | | |||
153 | d->globalConfigGroup = app->globalConfig(); | 153 | d->globalConfigGroup = app->globalConfig(); | ||
154 | d->globalConfigGroupPath = groupNames; | 154 | d->globalConfigGroupPath = groupNames; | ||
155 | 155 | | |||
156 | foreach (const QString &groupName, groupNames) { | 156 | for (const QString &groupName : groupNames) { | ||
157 | d->globalConfigGroup = KConfigGroup(&d->globalConfigGroup, groupName); | 157 | d->globalConfigGroup = KConfigGroup(&d->globalConfigGroup, groupName); | ||
158 | } | 158 | } | ||
159 | } | 159 | } | ||
160 | 160 | | |||
161 | QStringList Applet::currentGlobalConfigGroup() const | 161 | QStringList Applet::currentGlobalConfigGroup() const | ||
162 | { | 162 | { | ||
163 | return d->globalConfigGroupPath; | 163 | return d->globalConfigGroupPath; | ||
164 | } | 164 | } | ||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |