QSFPM: cleanup QRegularExpression includes
Add feature guard around the include in the header and remove the one from the implementation file. Change-Id: I8dc133cce786ead6059cc66b40a0ffb6c420096f Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
9273969107
commit
fe463dd422
@ -43,7 +43,6 @@
|
|||||||
#include <qdebug.h>
|
#include <qdebug.h>
|
||||||
#include <qdatetime.h>
|
#include <qdatetime.h>
|
||||||
#include <qpair.h>
|
#include <qpair.h>
|
||||||
#include <qregularexpression.h>
|
|
||||||
#include <qstringlist.h>
|
#include <qstringlist.h>
|
||||||
#include <private/qabstractitemmodel_p.h>
|
#include <private/qabstractitemmodel_p.h>
|
||||||
#include <private/qabstractproxymodel_p.h>
|
#include <private/qabstractproxymodel_p.h>
|
||||||
|
@ -42,7 +42,10 @@
|
|||||||
|
|
||||||
#include <QtCore/qabstractproxymodel.h>
|
#include <QtCore/qabstractproxymodel.h>
|
||||||
#include <QtCore/qregexp.h>
|
#include <QtCore/qregexp.h>
|
||||||
#include <QtCore/qregularexpression.h>
|
|
||||||
|
#if QT_CONFIG(regularexpression)
|
||||||
|
# include <QtCore/qregularexpression.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
QT_REQUIRE_CONFIG(sortfilterproxymodel);
|
QT_REQUIRE_CONFIG(sortfilterproxymodel);
|
||||||
|
|
||||||
@ -87,8 +90,10 @@ public:
|
|||||||
QRegExp filterRegExp() const;
|
QRegExp filterRegExp() const;
|
||||||
void setFilterRegExp(const QRegExp ®Exp);
|
void setFilterRegExp(const QRegExp ®Exp);
|
||||||
|
|
||||||
|
#if QT_CONFIG(regularexpression)
|
||||||
QRegularExpression filterRegularExpression() const;
|
QRegularExpression filterRegularExpression() const;
|
||||||
void setFilterRegularExpression(const QRegularExpression ®ularExpression);
|
void setFilterRegularExpression(const QRegularExpression ®ularExpression);
|
||||||
|
#endif
|
||||||
|
|
||||||
int filterKeyColumn() const;
|
int filterKeyColumn() const;
|
||||||
void setFilterKeyColumn(int column);
|
void setFilterKeyColumn(int column);
|
||||||
|
Loading…
Reference in New Issue
Block a user