summaryrefslogtreecommitdiffstats
path: root/src/models/uifilesystemmodel.cpp
diff options
context:
space:
mode:
authorAnselmo L. S. Melo <[email protected]>2014-03-29 18:31:57 -0300
committerAnselmo L. S. Melo <[email protected]>2014-05-09 13:04:53 +0200
commit5a530b2b9e514a83b9e5f2a66f06b37d35cac3f2 (patch)
tree7d782a5a1e5e1b1afe2cf16fa4c546c6af6eedd2 /src/models/uifilesystemmodel.cpp
parent67d58739f5e2fbefd45ff911da244aa4c910529d (diff)
API updatesHEADmaster
This project was developed before the release of Qt 5.0, so some of the APIs had to be updated in order to build again. Change-Id: I579d7170ea0d80bd33aee29ec807461af603b0d3 Reviewed-by: Anselmo L. S. Melo <[email protected]>
Diffstat (limited to 'src/models/uifilesystemmodel.cpp')
-rw-r--r--src/models/uifilesystemmodel.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/models/uifilesystemmodel.cpp b/src/models/uifilesystemmodel.cpp
index e8c23c8..f437dfd 100644
--- a/src/models/uifilesystemmodel.cpp
+++ b/src/models/uifilesystemmodel.cpp
@@ -1860,12 +1860,15 @@ void UiFileSystemModelPrivate::init()
q->connect(&fileInfoGatherer, SIGNAL(directoryLoaded(QString)),
q, SIGNAL(directoryLoaded(QString)));
q->connect(&delayedSortTimer, SIGNAL(timeout()), q, SLOT(_q_performDelayedSort()), Qt::QueuedConnection);
+}
- QHash<int, QByteArray> roles = q->roleNames();
+QHash<int, QByteArray> UiFileSystemModel::roleNames() const
+{
+ QHash<int, QByteArray> roles;
roles.insert(UiFileSystemModel::FilePathRole, "filePath");
roles.insert(UiFileSystemModel::FileNameRole, "fileName");
roles.insert(UiFileSystemModel::FilePermissions, "filePermissions");
- q->setRoleNames(roles);
+ return roles;
}
/*!