summaryrefslogtreecommitdiffstats
path: root/src/declarative/extra/qmlfolderlistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/extra/qmlfolderlistmodel.cpp')
-rw-r--r--src/declarative/extra/qmlfolderlistmodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/extra/qmlfolderlistmodel.cpp b/src/declarative/extra/qmlfolderlistmodel.cpp
index 8b008a5..acee5e1 100644
--- a/src/declarative/extra/qmlfolderlistmodel.cpp
+++ b/src/declarative/extra/qmlfolderlistmodel.cpp
@@ -51,7 +51,7 @@ class QmlFolderListModelPrivate : public QObjectPrivate
public:
QmlFolderListModelPrivate() : count(0) {
folder = QDir::currentPath();
- nameFilters << "*";
+ nameFilters << QLatin1String("*");
}
QDirModel model;
@@ -81,6 +81,7 @@ QmlFolderListModel::~QmlFolderListModel()
QHash<int,QVariant> QmlFolderListModel::data(int index, const QList<int> &roles) const
{
+ Q_UNUSED(roles);
Q_D(const QmlFolderListModel);
QHash<int,QVariant> folderData;
QModelIndex modelIndex = d->model.index(index, 0, d->folderIndex);