summaryrefslogtreecommitdiff
path: root/qt_helpers.hpp
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2020-06-26 09:28:37 +0200
committerChristoph Berg <christoph.berg@credativ.de>2020-06-26 09:28:37 +0200
commit28f34ff4908a90b1a7323b2988c33cdb1779fa06 (patch)
tree441994b458ea44a1c1019a365d4ec379c34da04f /qt_helpers.hpp
parentee0e1a654b7e64accea78a5aa66ec1e62bd352c8 (diff)
New upstream version 2.2.2+repackupstream/2.2.2+repack
Diffstat (limited to 'qt_helpers.hpp')
-rw-r--r--qt_helpers.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt_helpers.hpp b/qt_helpers.hpp
index bdb7cc93..33f50143 100644
--- a/qt_helpers.hpp
+++ b/qt_helpers.hpp
@@ -51,6 +51,12 @@
return QString {mo.enumerator (mo.indexOfEnumerator (#ENUM)).valueToKey (static_cast<int> (m))}; \
}
+#if QT_VERSION >= QT_VERSION_CHECK (5, 15, 0)
+Qt::SplitBehaviorFlags const SkipEmptyParts = Qt::SkipEmptyParts;
+#else
+QString::SplitBehavior const SkipEmptyParts = QString::SkipEmptyParts;
+#endif
+
inline
void throw_qstring (QString const& qs)
{