From 9db04f5aa06a47ad925564e8920f9c2509c097aa Mon Sep 17 00:00:00 2001 From: Ivan Pelipenko Date: Sat, 16 May 2020 10:02:44 +0300 Subject: [PATCH] qad_locations --- qad/utils/qad_locations.cpp | 12 ++++++------ qad/utils/qad_locations.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/qad/utils/qad_locations.cpp b/qad/utils/qad_locations.cpp index 8d1059d..36164f2 100644 --- a/qad/utils/qad_locations.cpp +++ b/qad/utils/qad_locations.cpp @@ -17,21 +17,21 @@ QString QAD::userPath(QAD::LocationType loc, QString name) { QString dir, ext; switch (loc) { - case ctConfig: ext = ".conf"; break; - case ctCache : ext = ".cache"; break; + case ltConfig: ext = ".conf"; break; + case ltCache : ext = ".cache"; break; } #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) QStandardPaths::StandardLocation l = QStandardPaths::AppConfigLocation; switch (loc) { - case ctConfig: l = QStandardPaths::AppConfigLocation; break; - case ctCache : l = QStandardPaths::CacheLocation; break; + case ltConfig: l = QStandardPaths::AppConfigLocation; break; + case ltCache : l = QStandardPaths::CacheLocation; break; } dir = QStandardPaths::writableLocation(l); #else QDesktopServices::StandardLocation l = QDesktopServices::DataLocation; switch (loc) { - case ctConfig: l = QDesktopServices::DataLocation; break; - case ctCache : l = QDesktopServices::CacheLocation; break; + case ltConfig: l = QDesktopServices::DataLocation; break; + case ltCache : l = QDesktopServices::CacheLocation; break; } dir = QDesktopServices::storageLocation(l); #endif diff --git a/qad/utils/qad_locations.h b/qad/utils/qad_locations.h index d1d8efd..860ce7f 100644 --- a/qad/utils/qad_locations.h +++ b/qad/utils/qad_locations.h @@ -27,8 +27,8 @@ namespace QAD { enum QAD_EXPORT LocationType { - ctConfig, - ctCache, + ltConfig, + ltCache, }; //! Create QStandardPaths::writableLocation() directory