summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qdirmodel.cpp
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2010-10-21 16:22:09 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2010-10-21 16:22:09 (GMT)
commit2a17ec1b2ef7164a9a5f4bd9b7e5854ed5884376 (patch)
tree1d1a8ec8cd131652a861467db57894e090621efd /src/gui/itemviews/qdirmodel.cpp
parent726a8b16c52fe4608c89d740b47361a2b073ce01 (diff)
downloadQt-2a17ec1b2ef7164a9a5f4bd9b7e5854ed5884376.zip
Qt-2a17ec1b2ef7164a9a5f4bd9b7e5854ed5884376.tar.gz
Qt-2a17ec1b2ef7164a9a5f4bd9b7e5854ed5884376.tar.bz2
Doc: Moved QFileSystemModel example code to the class documentation.
Previously, the code showed how to use QDirModel and was included in the QDirModel class documentation, but it has since been changed to use QFileSystemModel instead.
Diffstat (limited to 'src/gui/itemviews/qdirmodel.cpp')
-rw-r--r--src/gui/itemviews/qdirmodel.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gui/itemviews/qdirmodel.cpp b/src/gui/itemviews/qdirmodel.cpp
index 48599bc..cb6f81e 100644
--- a/src/gui/itemviews/qdirmodel.cpp
+++ b/src/gui/itemviews/qdirmodel.cpp
@@ -201,25 +201,6 @@ void QDirModelPrivate::invalidate()
QDirModel keeps a cache with file information. The cache needs to be
updated with refresh().
- A directory model that displays the contents of a default directory
- is usually constructed with a parent object:
-
- \snippet doc/src/snippets/shareddirmodel/main.cpp 2
-
- A tree view can be used to display the contents of the model
-
- \snippet doc/src/snippets/shareddirmodel/main.cpp 4
-
- and the contents of a particular directory can be displayed by
- setting the tree view's root index:
-
- \snippet doc/src/snippets/shareddirmodel/main.cpp 7
-
- The view's root index can be used to control how much of a
- hierarchical model is displayed. QDirModel provides a convenience
- function that returns a suitable model index for a path to a
- directory within the model.
-
QDirModel can be accessed using the standard interface provided by
QAbstractItemModel, but it also provides some convenience functions
that are specific to a directory model. The fileInfo() and isDir()