Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
fa450111
Commit
fa450111
authored
Feb 02, 2022
by
Laurent Montel
😁
Browse files
Port deprecated QStandardPaths::DataLocation
parent
fa9e8383
Pipeline
#131939
passed with stage
in 1 minute and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/developmentmodecontroller.cpp
View file @
fa450111
...
...
@@ -54,7 +54,7 @@ void DevelopmentModeController::importMapCSS(const QUrl &url)
auto
dest
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
);
#else
const
auto
fileName
=
KAndroidExtras
::
ContentResolver
::
fileName
(
url
);
auto
dest
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DataLocation
);
auto
dest
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
AppLocal
DataLocation
);
#endif
dest
+=
QLatin1String
(
"/org.kde.kosmindoormap/assets/css/"
);
...
...
@@ -68,7 +68,7 @@ void DevelopmentModeController::purgeMapCSS()
#ifndef Q_OS_ANDROID
QString
path
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
);
#else
QString
path
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DataLocation
);
QString
path
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
AppLocal
DataLocation
);
#endif
path
+=
QLatin1String
(
"/org.kde.kosmindoormap/assets/css/"
);
QDir
(
path
).
removeRecursively
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment