summaryrefslogtreecommitdiffstats
path: root/examples/itemviews/dirview/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/itemviews/dirview/main.cpp')
-rw-r--r--examples/itemviews/dirview/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/itemviews/dirview/main.cpp b/examples/itemviews/dirview/main.cpp
index f26e2f0..5f33810 100644
--- a/examples/itemviews/dirview/main.cpp
+++ b/examples/itemviews/dirview/main.cpp
@@ -45,7 +45,8 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
- QDirModel model;
+ QFileSystemModel model;
+ model.setRootPath("");
QTreeView tree;
tree.setModel(&model);