diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-05-19 00:16:36 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-05-19 00:16:36 (GMT) |
commit | 2108142dcd0a2dbb639443b594eb2c1c24e480cc (patch) | |
tree | 435ec5b57aef02c105269b81ba273f669974e6ad | |
parent | 69479992d8b4af73481df12e6f052269ae88ccc1 (diff) | |
download | Qt-2108142dcd0a2dbb639443b594eb2c1c24e480cc.zip Qt-2108142dcd0a2dbb639443b594eb2c1c24e480cc.tar.gz Qt-2108142dcd0a2dbb639443b594eb2c1c24e480cc.tar.bz2 |
Fix folderlistmodel with qt namespace
-rw-r--r-- | src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp | 4 | ||||
-rw-r--r-- | src/imports/folderlistmodel/qdeclarativefolderlistmodel.h | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp b/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp index a16f0c6..2ff7412 100644 --- a/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp +++ b/src/imports/folderlistmodel/qdeclarativefolderlistmodel.cpp @@ -44,6 +44,8 @@ #include <QDebug> #include <qdeclarativecontext.h> +QT_BEGIN_NAMESPACE + class QDeclarativeFolderListModelPrivate { public: @@ -387,3 +389,5 @@ void QDeclarativeFolderListModel::setShowOnlyReadable(bool on) else d->model.setFilter(d->model.filter() & ~QDir::Readable); } + +QT_END_NAMESPACE diff --git a/src/imports/folderlistmodel/qdeclarativefolderlistmodel.h b/src/imports/folderlistmodel/qdeclarativefolderlistmodel.h index e610a14..dbde4c0 100644 --- a/src/imports/folderlistmodel/qdeclarativefolderlistmodel.h +++ b/src/imports/folderlistmodel/qdeclarativefolderlistmodel.h @@ -47,6 +47,12 @@ #include <QUrl> #include <QAbstractListModel> +QT_BEGIN_HEADER + +QT_BEGIN_NAMESPACE + +QT_MODULE(Declarative) + class QDeclarativeContext; class QModelIndex; @@ -119,6 +125,10 @@ private: QDeclarativeFolderListModelPrivate *d; }; +QT_END_NAMESPACE + QML_DECLARE_TYPE(QDeclarativeFolderListModel) +QT_END_HEADER + #endif // QDECLARATIVEFOLDERLISTMODEL_H |