mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-20 13:29:35 +00:00
fix: Qt::SkipEmptyParts was introduced in Qt 5.14
https://doc.qt.io/qt-5/qt.html#SplitBehaviorFlags-enum
This commit is contained in:
parent
52bc70e696
commit
881bebfee5
@ -9,7 +9,7 @@
|
|||||||
#define DEFINES_H
|
#define DEFINES_H
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
#if QT_VERSION > QT_VERSION_CHECK(5, 13, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||||
#define splitbehavior Qt::SkipEmptyParts
|
#define splitbehavior Qt::SkipEmptyParts
|
||||||
#else
|
#else
|
||||||
#define splitbehavior QString::SkipEmptyParts
|
#define splitbehavior QString::SkipEmptyParts
|
||||||
|
@ -447,7 +447,7 @@ QString FileManager::changeDistanation(const QString& absalutePath,
|
|||||||
QString basePath,
|
QString basePath,
|
||||||
int depch) {
|
int depch) {
|
||||||
|
|
||||||
#if QT_VERSION > QT_VERSION_CHECK(5, 13, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||||
auto prefixes = absalutePath.split(QRegExp("[\\/]"), Qt::SkipEmptyParts);
|
auto prefixes = absalutePath.split(QRegExp("[\\/]"), Qt::SkipEmptyParts);
|
||||||
#else
|
#else
|
||||||
auto prefixes = absalutePath.split(QRegExp("[\\/]"), QString::SkipEmptyParts);
|
auto prefixes = absalutePath.split(QRegExp("[\\/]"), QString::SkipEmptyParts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user