Changeset View
Changeset View
Standalone View
Standalone View
shell/scripting/scriptengine_v1.cpp
Show First 20 Lines • Show All 317 Lines • ▼ Show 20 Line(s) | 315 | SCRIPT_OBJECT_FOREACH(escapedGroup, config, configs) { | |||
---|---|---|---|---|---|
318 | for (QString &group: groups) { | 318 | for (QString &group: groups) { | ||
319 | group = QUrl::fromPercentEncoding(group.toUtf8()); | 319 | group = QUrl::fromPercentEncoding(group.toUtf8()); | ||
320 | } | 320 | } | ||
321 | qDebug() << "Config group" << groups; | 321 | qDebug() << "Config group" << groups; | ||
322 | object->setCurrentConfigGroup(groups); | 322 | object->setCurrentConfigGroup(groups); | ||
323 | 323 | | |||
324 | // Read other properties and set the configuration | 324 | // Read other properties and set the configuration | ||
325 | SCRIPT_OBJECT_FOREACH(key, value, config) { | 325 | SCRIPT_OBJECT_FOREACH(key, value, config) { | ||
326 | object->writeConfig(key, value.toVariant()); | 326 | object->writeConfig(key, value); | ||
327 | }; | 327 | }; | ||
328 | }; | 328 | }; | ||
329 | } | 329 | } | ||
330 | 330 | | |||
331 | QJSValue ScriptEngine::V1::loadSerializedLayout(const QJSValue &data) | 331 | QJSValue ScriptEngine::V1::loadSerializedLayout(const QJSValue &data) | ||
332 | { | 332 | { | ||
333 | if (!data.isObject()) { | 333 | if (!data.isObject()) { | ||
334 | return m_engine->newError(i18n("loadSerializedLayout requires the JSON object to deserialize from")); | 334 | return m_engine->newError(i18n("loadSerializedLayout requires the JSON object to deserialize from")); | ||
▲ Show 20 Lines • Show All 564 Lines • Show Last 20 Lines |