aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gerrit
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-03-18 13:32:28 +0100
committerLars Knoll <lars.knoll@qt.io>2020-03-20 11:39:42 +0000
commit99a81e78d5b2a55226161d7aa7483ab2cb918f8b (patch)
treee819eddf8833b69b4ad089dee7cca46eb5f6bf20 /src/plugins/git/gerrit
parent2e4915bdb96bc1d5e5bed6f38e13b87db68a97c5 (diff)
Port from QRegExpValidator to QRegularExpressionValidator
QRegExpValidator is going away in Qt6, so port over to the version using QRegularExpression. Change-Id: Iecd1ba1f0e5e01009ae43b79c1ccc73f0fc046b2 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/git/gerrit')
-rw-r--r--src/plugins/git/gerrit/gerritpushdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/git/gerrit/gerritpushdialog.cpp b/src/plugins/git/gerrit/gerritpushdialog.cpp
index ddd45134f79..63d05614bd6 100644
--- a/src/plugins/git/gerrit/gerritpushdialog.cpp
+++ b/src/plugins/git/gerrit/gerritpushdialog.cpp
@@ -37,7 +37,7 @@
#include <QDateTime>
#include <QDir>
#include <QPushButton>
-#include <QRegExpValidator>
+#include <QRegularExpressionValidator>
#include <QVersionNumber>
using namespace Git::Internal;
@@ -156,7 +156,7 @@ GerritPushDialog::GerritPushDialog(const QString &workingDir, const QString &rev
updateCommits(m_ui->localBranchComboBox->currentIndex());
onRemoteChanged(true);
- QRegExpValidator *noSpaceValidator = new QRegExpValidator(QRegExp("^\\S+$"), this);
+ QRegularExpressionValidator *noSpaceValidator = new QRegularExpressionValidator(QRegularExpression("^\\S+$"), this);
m_ui->reviewersLineEdit->setText(reviewerList);
m_ui->reviewersLineEdit->setValidator(noSpaceValidator);
m_ui->topicLineEdit->setValidator(noSpaceValidator);