diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-02-09 15:22:03 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-03-21 14:00:29 +0000 |
commit | 6e8e9979d0786d7d730528c2888e0e1af4fb96ca (patch) | |
tree | 329bd13a96664cf3a238dde419d6335d55c1fc0f /src/corelib/itemmodels/qstringlistmodel.h | |
parent | a47cb146809e32f43449dcfe9932833c2f0ab987 (diff) |
Make sure we can build with -no-feature-itemmodel
Various pieces of code have to be disabled in this case.
Change-Id: I83b133f17e9f024016a79c9103293627185449d2
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/corelib/itemmodels/qstringlistmodel.h')
-rw-r--r-- | src/corelib/itemmodels/qstringlistmodel.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/corelib/itemmodels/qstringlistmodel.h b/src/corelib/itemmodels/qstringlistmodel.h index 38da1022ea..a40c13ae40 100644 --- a/src/corelib/itemmodels/qstringlistmodel.h +++ b/src/corelib/itemmodels/qstringlistmodel.h @@ -43,10 +43,9 @@ #include <QtCore/qabstractitemmodel.h> #include <QtCore/qstringlist.h> -QT_BEGIN_NAMESPACE - +QT_REQUIRE_CONFIG(stringlistmodel); -#ifndef QT_NO_STRINGLISTMODEL +QT_BEGIN_NAMESPACE class Q_CORE_EXPORT QStringListModel : public QAbstractListModel { @@ -78,8 +77,6 @@ private: QStringList lst; }; -#endif // QT_NO_STRINGLISTMODEL - QT_END_NAMESPACE #endif // QSTRINGLISTMODEL_H |