From 8563f1f54f9dd9da2b97d1c1208a0f28eb35840d Mon Sep 17 00:00:00 2001 From: David Faure Date: Sat, 31 Oct 2020 14:38:21 +0100 Subject: [PATCH] Port from QStandardPaths::DataLocation to QStandardPaths::AppDataLocation They are the same on Linux (but DataLocation is deprecated). On Windows this enables the use of the roaming path. NO_CHANGELOG --- effects/cube/cube.kcfg | 2 +- effects/trackmouse/trackmouse.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/effects/cube/cube.kcfg b/effects/cube/cube.kcfg index f0c5fda7ec..ee9c5ec05a 100644 --- a/effects/cube/cube.kcfg +++ b/effects/cube/cube.kcfg @@ -34,7 +34,7 @@ QColor(KColorScheme(QPalette::Active, KColorScheme::Window).background().color()) - QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("cubecap.png")) + QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("cubecap.png")) true diff --git a/effects/trackmouse/trackmouse.cpp b/effects/trackmouse/trackmouse.cpp index d57c327a48..ea26120ec5 100644 --- a/effects/trackmouse/trackmouse.cpp +++ b/effects/trackmouse/trackmouse.cpp @@ -267,8 +267,8 @@ void TrackMouseEffect::slotMouseChanged(const QPoint&, const QPoint&, void TrackMouseEffect::loadTexture() { - QString f[2] = {QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("tm_outer.png")), - QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("tm_inner.png"))}; + QString f[2] = {QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("tm_outer.png")), + QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("tm_inner.png"))}; if (f[0].isEmpty() || f[1].isEmpty()) return;