From 31a180057454698703435dbb891abfb627bb11a4 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 4 Jul 2022 19:31:25 -0500 Subject: Qt UI: Use correct SkipEmptyParts based on Qt SDK --- ui/qt5/useraccountwidget.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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++) { -- cgit v1.2.3-70-g09d2