aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlmodels/qqmlobjectmodel_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlmodels/qqmlobjectmodel_p.h')
-rw-r--r--src/qmlmodels/qqmlobjectmodel_p.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/qmlmodels/qqmlobjectmodel_p.h b/src/qmlmodels/qqmlobjectmodel_p.h
index c15913220a..e161586c90 100644
--- a/src/qmlmodels/qqmlobjectmodel_p.h
+++ b/src/qmlmodels/qqmlobjectmodel_p.h
@@ -28,7 +28,7 @@ class QObject;
class QQmlChangeSet;
class QAbstractItemModel;
-class Q_QMLMODELS_PRIVATE_EXPORT QQmlInstanceModel : public QObject
+class Q_QMLMODELS_EXPORT QQmlInstanceModel : public QObject
{
Q_OBJECT
@@ -82,7 +82,7 @@ private:
class QQmlObjectModelAttached;
class QQmlObjectModelPrivate;
-class Q_QMLMODELS_PRIVATE_EXPORT QQmlObjectModel : public QQmlInstanceModel
+class Q_QMLMODELS_EXPORT QQmlObjectModel : public QQmlInstanceModel
{
Q_OBJECT
Q_DECLARE_PRIVATE(QQmlObjectModel)
@@ -138,7 +138,7 @@ public:
attachedProperties.remove(parent());
}
- Q_PROPERTY(int index READ index NOTIFY indexChanged)
+ Q_PROPERTY(int index READ index NOTIFY indexChanged FINAL)
int index() const { return m_index; }
void setIndex(int idx) {
if (m_index != idx) {
@@ -168,7 +168,4 @@ public:
QT_END_NAMESPACE
-QML_DECLARE_TYPE(QQmlInstanceModel)
-QML_DECLARE_TYPE(QQmlObjectModel)
-
#endif // QQMLINSTANCEMODEL_P_H