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>
Samuel Gaist 2019-06-10 08:49:40 +02:00
parent 826b262fa6
commit c0f0e94db5
1 changed files with 1 additions and 1 deletions

View File

@ -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;