summaryrefslogtreecommitdiff
path: root/ui/qt5
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-07-04 19:31:25 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-07-04 19:31:25 -0500
commit31a180057454698703435dbb891abfb627bb11a4 (patch)
treee3722fa5956b4153c0ee007463dfbc9a5c07157a /ui/qt5
parent8fbf90db8029de5a7a73b553dbf3ab9d17ddacd6 (diff)
downloadhorizon-31a180057454698703435dbb891abfb627bb11a4.tar.gz
horizon-31a180057454698703435dbb891abfb627bb11a4.tar.bz2
horizon-31a180057454698703435dbb891abfb627bb11a4.tar.xz
horizon-31a180057454698703435dbb891abfb627bb11a4.zip
Qt UI: Use correct SkipEmptyParts based on Qt SDK
Diffstat (limited to 'ui/qt5')
-rw-r--r--ui/qt5/useraccountwidget.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/qt5/useraccountwidget.cc b/ui/qt5/useraccountwidget.cc
index f499c31..5ff220c 100644
--- a/ui/qt5/useraccountwidget.cc
+++ b/ui/qt5/useraccountwidget.cc
@@ -3,7 +3,7 @@
* horizon-qt5, the Qt 5 user interface for
* Project Horizon
*
- * Copyright (c) 2019 Adélie Linux and contributors. All rights reserved.
+ * Copyright (c) 2019-2022 Adélie Linux and contributors. All rights reserved.
* This code is licensed under the AGPL 3.0 license, as noted in the
* LICENSE-code file in the root directory of this repository.
*
@@ -113,7 +113,11 @@ UserAccountWidget::UserAccountWidget(QWidget *parent)
.normalized(QString::NormalizationForm_KC)
/* Casefold */
.toLower();
+#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
+ QStringList components = result.split(" ", Qt::SkipEmptyParts);
+#else
QStringList components = result.split(" ", QString::SkipEmptyParts);
+#endif
if(components.size() > 1) {
result = "";
for(int next = 0; next < components.size() - 1; next++) {