summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/simplemodel-use/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/simplemodel-use/main.cpp')
-rw-r--r--doc/src/snippets/simplemodel-use/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/simplemodel-use/main.cpp b/doc/src/snippets/simplemodel-use/main.cpp
index a3bb0e7..d7fc755 100644
--- a/doc/src/snippets/simplemodel-use/main.cpp
+++ b/doc/src/snippets/simplemodel-use/main.cpp
@@ -69,7 +69,7 @@ int main(int argc, char *argv[])
layout->addWidget(title);
//! [0]
- QDirModel *model = new QDirModel;
+ QFileSystemModel *model = new QFileSystemModel;
QModelIndex parentIndex = model->index(QDir::currentPath());
int numRows = model->rowCount(parentIndex);
//! [0]