Fix build without features.proxymodel
Change-Id: I9e51ed78d783da999187e7df58ddb83d76e3c7b7 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
parent
7a4e5e7433
commit
22b3486f82
@ -64,7 +64,9 @@
|
||||
#include <qheaderview.h>
|
||||
#include <qmath.h>
|
||||
#include <qmetaobject.h>
|
||||
#if QT_CONFIG(proxymodel)
|
||||
#include <qabstractproxymodel.h>
|
||||
#endif
|
||||
#include <qstylehints.h>
|
||||
#include <private/qguiapplication_p.h>
|
||||
#include <private/qhighdpiscaling_p.h>
|
||||
@ -200,6 +202,7 @@ QStyleOptionMenuItem QComboMenuDelegate::getStyleOption(const QStyleOptionViewIt
|
||||
void QComboBoxPrivate::_q_completerActivated(const QModelIndex &index)
|
||||
{
|
||||
Q_Q(QComboBox);
|
||||
#if QT_CONFIG(proxymodel)
|
||||
if (index.isValid() && q->completer()) {
|
||||
QAbstractProxyModel *proxy = qobject_cast<QAbstractProxyModel *>(q->completer()->completionModel());
|
||||
if (proxy) {
|
||||
@ -221,6 +224,7 @@ void QComboBoxPrivate::_q_completerActivated(const QModelIndex &index)
|
||||
emitActivated(currentIndex);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
# ifdef QT_KEYPAD_NAVIGATION
|
||||
if ( QApplicationPrivate::keypadNavigationEnabled()
|
||||
|
Loading…
Reference in New Issue
Block a user