test: Fix QRegularExpression feature config check
The check to disable the test was the one for QRegExp. This patch fixes that. Change-Id: I8783f582998cdd6ffe5dc5dafb3d53d56cd91213 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
parent
826b262fa6
commit
c0f0e94db5
|
|
@ -236,7 +236,7 @@ template<> struct TestValueFactory<QMetaType::QRegExp> {
|
|||
template<> struct TestValueFactory<QMetaType::QRegularExpression> {
|
||||
static QRegularExpression *create()
|
||||
{
|
||||
#ifndef QT_NO_REGEXP
|
||||
#if QT_CONFIG(regularexpression)
|
||||
return new QRegularExpression("abc.*def");
|
||||
#else
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue