aboutsummaryrefslogtreecommitdiffstats
path: root/utils/alsoft-config
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-01-06 17:01:26 -0800
committerChris Robinson <[email protected]>2022-01-06 17:01:26 -0800
commite32c214e9c8f2c1a9aab06ebd2bad8475c12949c (patch)
treeba0dacfae8a8b10e1f61f31bdb14a4f6844ece28 /utils/alsoft-config
parent16ae002d0b0d3d8309677d0a72bd4703fdcac0ae (diff)
Use the deprecated enum for older Qt versions
Diffstat (limited to 'utils/alsoft-config')
-rw-r--r--utils/alsoft-config/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index 0e6e2e29..718752c6 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -204,7 +204,11 @@ static QStringList getAllDataPaths(const QString &append)
QString paths = qgetenv("XDG_DATA_DIRS");
if(paths.isEmpty())
paths = "/usr/local/share/:/usr/share/";
+#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
list += paths.split(QChar(':'), Qt::SkipEmptyParts);
+#else
+ list += paths.split(QChar(':'), QString::SkipEmptyParts);
+#endif
#endif
QStringList::iterator iter = list.begin();
while(iter != list.end())