From 5fbd100449fc348b280a73530bab2970ed922530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 2 Oct 2021 07:58:19 +0200 Subject: [PATCH] Use non deprecated QStandardPaths and remove Qt4 alternative --- common/yacreader_global.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/yacreader_global.cpp b/common/yacreader_global.cpp index 53d2bf75..f802c1e4 100644 --- a/common/yacreader_global.cpp +++ b/common/yacreader_global.cpp @@ -4,11 +4,7 @@ using namespace YACReader; QString YACReader::getSettingsPath() { -#if QT_VERSION >= 0x050000 - return QStandardPaths::writableLocation(QStandardPaths::DataLocation); -#else - return QDesktopServices::storageLocation(QDesktopServices::DataLocation); -#endif + return QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation); } QString YACReader::colorToName(LabelColors colors)