Commit 98d89aa5 authored by Daniel Teske's avatar Daniel Teske
Browse files

KitManagerConfigWidget: Use QRegularExpression



Change-Id: I71c594d89090b6d74d790ae6395ea15025775ff7
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 637d53c6
......@@ -39,8 +39,8 @@
#include <utils/stringutils.h>
#include <QAction>
#include <QRegExp>
#include <QRegExpValidator>
#include <QRegularExpression>
#include <QRegularExpressionValidator>
#include <QFileDialog>
#include <QGridLayout>
#include <QLabel>
......@@ -81,9 +81,9 @@ KitManagerConfigWidget::KitManagerConfigWidget(Kit *k) :
QLabel *label = createLabel(tr("File system name:"), toolTip);
m_layout->addWidget(label, 1, LabelColumn, alignment);
m_fileSystemFriendlyNameLineEdit->setToolTip(toolTip);
QRegExp fileSystemFriendlyNameRegexp(QLatin1String("^[A-Za-z0-9_-]*$"));
QRegularExpression fileSystemFriendlyNameRegexp(QLatin1String("^[A-Za-z0-9_-]*$"));
Q_ASSERT(fileSystemFriendlyNameRegexp.isValid());
m_fileSystemFriendlyNameLineEdit->setValidator(new QRegExpValidator(fileSystemFriendlyNameRegexp, m_fileSystemFriendlyNameLineEdit));
m_fileSystemFriendlyNameLineEdit->setValidator(new QRegularExpressionValidator(fileSystemFriendlyNameRegexp, m_fileSystemFriendlyNameLineEdit));
m_layout->addWidget(m_fileSystemFriendlyNameLineEdit, 1, WidgetColumn);
connect(m_fileSystemFriendlyNameLineEdit, SIGNAL(textChanged(QString)), this, SLOT(setFileSystemFriendlyName()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment