Enable -DQT_NO_URL_CAST_FROM_STRING and fix compilation
This commit is contained in:
parent
0cf7cca2ab
commit
48971e0848
2 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ include(KDECompilerSettings NO_POLICY_SCOPE)
|
|||
include(ECMInstallIcons)
|
||||
include(ECMOptionalAddSubdirectory)
|
||||
|
||||
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_USE_QSTRINGBUILDER)
|
||||
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_USE_QSTRINGBUILDER -DQT_NO_URL_CAST_FROM_STRING)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
|
|
@ -292,7 +292,7 @@ void EffectModel::loadJavascriptEffects(const KConfigGroup &kwinConfig)
|
|||
effect.enabledByDefault = plugin.isPluginEnabledByDefault();
|
||||
effect.enabledByDefaultFunction = false;
|
||||
effect.video = plugin.property(QStringLiteral("X-KWin-Video-Url")).toUrl();
|
||||
effect.website = plugin.website();
|
||||
effect.website = QUrl(plugin.website());
|
||||
effect.supported = true;
|
||||
effect.exclusiveGroup = plugin.property(QStringLiteral("X-KWin-Exclusive-Category")).toString();
|
||||
effect.internal = plugin.property(QStringLiteral("X-KWin-Internal")).toBool();
|
||||
|
@ -355,7 +355,7 @@ void EffectModel::loadPluginEffects(const KConfigGroup &kwinConfig, const KPlugi
|
|||
effect.enabledByDefaultFunction = d.value("enabledByDefaultMethod").toBool();
|
||||
}
|
||||
|
||||
effect.website = pluginEffect.website();
|
||||
effect.website = QUrl(pluginEffect.website());
|
||||
|
||||
const QString enabledKey = QStringLiteral("%1Enabled").arg(effect.serviceName);
|
||||
if (kwinConfig.hasKey(enabledKey)) {
|
||||
|
|
Loading…
Reference in a new issue