aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2020-03-03 07:04:14 +0100
committerLaurent Montel <montel@kde.org>2020-03-03 07:04:14 +0100
commitabe6188cffb5c5e404da357fbbaaaa64263db35e (patch)
tree7dd9518a5fd345b353f557fca2868a0d4f5ffe65
parenta2774ff5b41987c3919a9ecc54c70e0d4b3758ae (diff)
downloadkconfig-abe6188cffb5c5e404da357fbbaaaa64263db35e.tar.gz
kconfig-abe6188cffb5c5e404da357fbbaaaa64263db35e.tar.bz2
Make it compile against qt5.15. SkipEmptyParts is part of Qt::.
-rw-r--r--src/gui/kconfigloader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kconfigloader.cpp b/src/gui/kconfigloader.cpp
index abed2e0e..1e33f4ea 100644
--- a/src/gui/kconfigloader.cpp
+++ b/src/gui/kconfigloader.cpp
@@ -238,7 +238,11 @@ void ConfigLoaderHandler::addItem()
//FIXME: the split() is naive and will break on lists with ,'s in them
//empty parts are not wanted in this case
item = m_config->addItemStringList(m_name, *d->newStringList(),
+#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
m_default.split(QLatin1Char(','), QString::SkipEmptyParts), m_key);
+#else
+ m_default.split(QLatin1Char(','), Qt::SkipEmptyParts), m_key);
+#endif
} else if (m_type == QLatin1String("uint")) {
KConfigSkeleton::ItemUInt *uintItem =
m_config->addItemUInt(m_name, *d->newUint(), m_default.toUInt(), m_key);