forked from qt-creator/qt-creator
Git: Convert BranchNameValidator to QRegularExpression
Change-Id: I496d427b4cba65a2aa9ba9b3de84c92f568414f7 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
910c384766
commit
2f51a42461
@@ -29,6 +29,7 @@
|
|||||||
#include <utils/hostosinfo.h>
|
#include <utils/hostosinfo.h>
|
||||||
|
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
#include <QRegularExpression>
|
||||||
#include <QValidator>
|
#include <QValidator>
|
||||||
|
|
||||||
namespace Git {
|
namespace Git {
|
||||||
@@ -94,7 +95,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const QRegExp m_invalidChars;
|
const QRegularExpression m_invalidChars;
|
||||||
QStringList m_localBranches;
|
QStringList m_localBranches;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user