diff options
Diffstat (limited to 'qt_helpers.hpp')
| -rw-r--r-- | qt_helpers.hpp | 6 |
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) { |
