summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-08-02 02:34:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-08-06 12:22:52 +0200
commit3cc721066336996935b9a8529004b7dede577760 (patch)
treec1e724e17c7abcd164231c4b1744e9edf88eedd4 /gui
parent6a5954197ef5671b5cc9159377e83ef15bf43373 (diff)
gui: fix deprecated Qt API
Diffstat (limited to 'gui')
-rw-r--r--gui/process_detector.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/process_detector.cpp b/gui/process_detector.cpp
index 58ea4ca9..74e8caac 100644
--- a/gui/process_detector.cpp
+++ b/gui/process_detector.cpp
@@ -63,7 +63,13 @@ void proc_detector_settings::set_is_enabled(bool enabled)
QHash<QString, QString> proc_detector_settings::split_process_names()
{
QString str = get_game_list();
- QStringList pairs = str.split(RECORD_SEPARATOR, QString::SkipEmptyParts);
+ constexpr auto split_flag =
+#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
+ Qt::SkipEmptyParts;
+#else
+ QString::SkipEmptyParts;
+#endif
+ QStringList pairs = str.split(RECORD_SEPARATOR, split_flag);
QHash<QString, QString> ret;
ret.reserve(pairs.size() * 2);
for (auto const& pair : pairs)