Commit 5f4d09fd authored by David Faure's avatar David Faure
Browse files

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.

parent 79d63618
......@@ -60,7 +60,7 @@ void GameGLView::initializeGL()
// Look for themes in files "---/share/apps/kubrick/themes/*.desktop".
// IDW - This is temporary code for KDE 4.1. Do themes properly in KDE 4.2.
QStringList themeFilepaths;
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::DataLocation, QStringLiteral("themes"), QStandardPaths::LocateDirectory);
const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::AppDataLocation, QStringLiteral("themes"), QStandardPaths::LocateDirectory);
for (const QString& dir : dirs) {
const QStringList fileNames = QDir(dir).entryList(QStringList() << QStringLiteral("*.svgz")); // Find files.
for (const QString& file : fileNames) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment