test: migrate manual dialogs tests to QRegularExpression
This is part of the migration of qtbase from QRexExp to QRegularExpression. Task-number: QTBUG-72587 Change-Id: I9eae3291bc6934375404224c7242e2b23af2019b Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
parent
439f343416
commit
9fc5902d23
@ -39,6 +39,8 @@
|
|||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
|
#include <QRegularExpressionValidator>
|
||||||
|
#include <QRegularExpression>
|
||||||
|
|
||||||
MessageBoxPanel::MessageBoxPanel(QWidget *parent) : QWidget(parent)
|
MessageBoxPanel::MessageBoxPanel(QWidget *parent) : QWidget(parent)
|
||||||
,m_iconComboBox(new QComboBox)
|
,m_iconComboBox(new QComboBox)
|
||||||
@ -80,7 +82,7 @@ MessageBoxPanel::MessageBoxPanel(QWidget *parent) : QWidget(parent)
|
|||||||
|
|
||||||
// buttons mask
|
// buttons mask
|
||||||
optionsLayout->addWidget(new QLabel(QString::fromLatin1("Message box button mask (in hex)")));
|
optionsLayout->addWidget(new QLabel(QString::fromLatin1("Message box button mask (in hex)")));
|
||||||
m_validator = new QRegExpValidator(QRegExp("0[xX]?[0-9a-fA-F]+"), this);
|
m_validator = new QRegularExpressionValidator(QRegularExpression("0[xX]?[0-9a-fA-F]+"), this);
|
||||||
m_buttonsMask->setMaxLength(10);
|
m_buttonsMask->setMaxLength(10);
|
||||||
m_buttonsMask->setValidator(m_validator);
|
m_buttonsMask->setValidator(m_validator);
|
||||||
m_buttonsMask->setText(QString::fromLatin1("0x00300400"));
|
m_buttonsMask->setText(QString::fromLatin1("0x00300400"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user