summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/declarative/fx/qfxvisualitemmodel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/declarative/fx/qfxvisualitemmodel.cpp b/src/declarative/fx/qfxvisualitemmodel.cpp
index 1b15a48..3d336c5 100644
--- a/src/declarative/fx/qfxvisualitemmodel.cpp
+++ b/src/declarative/fx/qfxvisualitemmodel.cpp
@@ -51,6 +51,7 @@
#include "qmlopenmetaobject.h"
#include "qmllistaccessor.h"
#include "qfxvisualitemmodel.h"
+#include "private/qguard_p.h"
#include <QtCore/qdebug.h>
QML_DECLARE_TYPE(QListModelInterface)
@@ -64,9 +65,9 @@ class QFxVisualItemModelPrivate : public QObjectPrivate
public:
QFxVisualItemModelPrivate(QmlContext *);
- QListModelInterface *m_listModelInterface;
- QAbstractItemModel *m_abstractItemModel;
- QFxVisualItemModel *m_visualItemModel;
+ QGuard<QListModelInterface> m_listModelInterface;
+ QGuard<QAbstractItemModel> m_abstractItemModel;
+ QGuard<QFxVisualItemModel> m_visualItemModel;
QString m_part;
QmlComponent *m_delegate;