diff options
author | Samuel Gaist <samuel.gaist@edeltech.ch> | 2018-06-30 14:00:14 +0200 |
---|---|---|
committer | Samuel Gaist <samuel.gaist@idiap.ch> | 2018-07-06 20:36:59 +0000 |
commit | c2f9fc53cd7918d949c2166e738425c07bb29d39 (patch) | |
tree | 26b82ca073952d6033a711240e4767591320c043 /tools | |
parent | ccecdf14f9463cac13282ae3cf0f21dbe4aae4f3 (diff) |
Migrate tools/testcon's ChangeProperties to QRegularExpression
This patch updates the ChangeProperties class of the testcon tool to use
QRegularExpression in place of QRegExp which is to be considered
deprecated.
Change-Id: If972c091fa929f77282b94e46f37c2d945df9262
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testcon/changeproperties.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testcon/changeproperties.cpp b/tools/testcon/changeproperties.cpp index 7382c0a..395acc7 100644 --- a/tools/testcon/changeproperties.cpp +++ b/tools/testcon/changeproperties.cpp @@ -33,7 +33,7 @@ #include <QtCore/qt_windows.h> #include <QtCore/QMetaObject> #include <QtCore/QMetaProperty> -#include <QtCore/QRegExp> +#include <QtCore/QRegularExpression> #include <ActiveQt/QAxWidget> QT_BEGIN_NAMESPACE @@ -143,7 +143,7 @@ void ChangeProperties::on_buttonSet_clicked() break; case QVariant::List: { - QStringList txtList = editValue->text().split(QRegExp(QLatin1String("[,;]"))); + QStringList txtList = editValue->text().split(QRegularExpression(QLatin1String("[,;]"))); QList<QVariant> varList; for (int i = 0; i < txtList.count(); ++i) { QVariant svar(txtList.at(i)); |