summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-02-17 02:07:33 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-02-17 02:07:33 (GMT)
commitddd1428cd15cc19e7d0b9a1adaba2f889d17111f (patch)
treee266d53f9a67fb9c441e6be02fe841f86d0d4f41 /src/declarative
parent9853ac3587655c97cf7f6a7fe282c997c2b19f5e (diff)
downloadQt-ddd1428cd15cc19e7d0b9a1adaba2f889d17111f.zip
Qt-ddd1428cd15cc19e7d0b9a1adaba2f889d17111f.tar.gz
Qt-ddd1428cd15cc19e7d0b9a1adaba2f889d17111f.tar.bz2
Declare QmlXmlListModelRole meta type before any code uses it.
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/util/qmlxmllistmodel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/declarative/util/qmlxmllistmodel.cpp b/src/declarative/util/qmlxmllistmodel.cpp
index b2c2e61..df2102a 100644
--- a/src/declarative/util/qmlxmllistmodel.cpp
+++ b/src/declarative/util/qmlxmllistmodel.cpp
@@ -125,6 +125,10 @@ private:
QString m_name;
QString m_query;
};
+QT_END_NAMESPACE
+QML_DECLARE_TYPE(QmlXmlListModelRole)
+QT_BEGIN_NAMESPACE
+
class QmlXmlListModelPrivate;
struct QmlXmlRoleList : public QmlConcreteList<QmlXmlListModelRole *>
@@ -723,6 +727,4 @@ void QmlXmlListModel::queryCompleted(int id, int size)
QT_END_NAMESPACE
-QML_DECLARE_TYPE(QmlXmlListModelRole)
-
#include <qmlxmllistmodel.moc>