diff options
Diffstat (limited to 'src/qmlmodels')
-rw-r--r-- | src/qmlmodels/qqmlmodelsmodule_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qmlmodels/qqmlmodelsmodule_p.h b/src/qmlmodels/qqmlmodelsmodule_p.h index 70268f53f2..06b7b1a340 100644 --- a/src/qmlmodels/qqmlmodelsmodule_p.h +++ b/src/qmlmodels/qqmlmodelsmodule_p.h @@ -54,6 +54,7 @@ #include <QtQml/qqml.h> #if QT_CONFIG(itemmodel) +#include <QtCore/qabstractitemmodel.h> #include <QtCore/qitemselectionmodel.h> #endif @@ -69,6 +70,14 @@ struct QItemSelectionModelForeign QML_NAMED_ELEMENT(ItemSelectionModel) QML_ADDED_IN_VERSION(2, 2) }; + +struct QAbstractItemModelForeign +{ + Q_GADGET + QML_FOREIGN(QAbstractItemModel) + QML_ANONYMOUS + QML_ADDED_IN_VERSION(2, 15) +}; #endif QT_END_NAMESPACE |