Port away from QRegExp.

This commit is contained in:
Andrius Štikonas 2017-09-05 12:55:44 +01:00
parent da621fbfbe
commit 20da0d64cf
1 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,7 @@
#include <KSharedConfig>
#include <QListWidgetItem>
#include <QRegularExpressionValidator>
/** Creates a new VolumeGroupDialog
@param parent pointer to the parent widget
@ -74,8 +75,8 @@ VolumeGroupDialog::~VolumeGroupDialog()
void VolumeGroupDialog::setupDialog()
{
QRegExp re(QStringLiteral("[\\w-.+]+"));
QRegExpValidator *validator = new QRegExpValidator(re, this);
QRegularExpression re(QStringLiteral("[\\w-.+]+"));
QRegularExpressionValidator *validator = new QRegularExpressionValidator(re, this);
dialogWidget().vgName().setValidator(validator);
dialogWidget().vgName().setText(targetName());