Remove some leftovers of QRegExpValidator
Amends dee55af0a5
Change-Id: I59c02c6c289028abb86cdab1b2f2b3efdcea7821
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
bb10
parent
907652e1ed
commit
3151c510e8
|
|
@ -1314,10 +1314,6 @@ QColorShower::QColorShower(QColorDialog *parent)
|
|||
QRegularExpression regExp(QStringLiteral("#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})"));
|
||||
QRegularExpressionValidator *validator = new QRegularExpressionValidator(regExp, this);
|
||||
htEd->setValidator(validator);
|
||||
#elif !defined(QT_NO_REGEXP)
|
||||
QRegExp regExp(QStringLiteral("#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})"));
|
||||
QRegExpValidator *validator = new QRegExpValidator(regExp, this);
|
||||
htEd->setValidator(validator);
|
||||
#else
|
||||
htEd->setReadOnly(true);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -609,7 +609,7 @@ const QValidator * QLineEdit::validator() const
|
|||
The initial setting is to have no input validator (i.e. any input
|
||||
is accepted up to maxLength()).
|
||||
|
||||
\sa validator(), hasAcceptableInput(), QIntValidator, QDoubleValidator, QRegExpValidator
|
||||
\sa validator(), hasAcceptableInput(), QIntValidator, QDoubleValidator, QRegularExpressionValidator
|
||||
*/
|
||||
|
||||
void QLineEdit::setValidator(const QValidator *v)
|
||||
|
|
|
|||
Loading…
Reference in New Issue