Use QT_CONFIG(stringlistmodel) rather than QT_NO_STRINGLISTMODEL
Change-Id: Iac5b2cb63d05f1746ca1bf9eba07562d76aa7ba3 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
89a19935d4
commit
a1211c69d5
@ -999,7 +999,7 @@ QCompleter::QCompleter(QAbstractItemModel *model, QObject *parent)
|
||||
d->init(model);
|
||||
}
|
||||
|
||||
#ifndef QT_NO_STRINGLISTMODEL
|
||||
#if QT_CONFIG(stringlistmodel)
|
||||
/*!
|
||||
Constructs a QCompleter object with the given \a parent that uses the specified
|
||||
\a list as a source of possible completions.
|
||||
@ -1010,7 +1010,7 @@ QCompleter::QCompleter(const QStringList& list, QObject *parent)
|
||||
Q_D(QCompleter);
|
||||
d->init(new QStringListModel(list, this));
|
||||
}
|
||||
#endif // QT_NO_STRINGLISTMODEL
|
||||
#endif // QT_CONFIG(stringlistmodel)
|
||||
|
||||
/*!
|
||||
Destroys the completer object.
|
||||
|
@ -84,7 +84,7 @@ public:
|
||||
|
||||
QCompleter(QObject *parent = nullptr);
|
||||
QCompleter(QAbstractItemModel *model, QObject *parent = nullptr);
|
||||
#ifndef QT_NO_STRINGLISTMODEL
|
||||
#if QT_CONFIG(stringlistmodel)
|
||||
QCompleter(const QStringList& completions, QObject *parent = nullptr);
|
||||
#endif
|
||||
~QCompleter();
|
||||
|
Loading…
Reference in New Issue
Block a user