path: root/examples/widgets/doc
diff options
authorLiang Qi <>2018-04-26 09:55:10 +0200
committerLiang Qi <>2018-04-26 09:55:10 +0200
commit866b47916dfcf2823b8fc4df719f1ebf15acef70 (patch)
treea4eef09d00d407dec26b99b9f094bf1f5093dcb8 /examples/widgets/doc
parenta9fc91466c2c143bea422d98af24755f43c2b97b (diff)
parent4bab1b0d7c2462ee9c5369c949b45bc4dedc1194 (diff)
Merge remote-tracking branch 'origin/5.11' into dev
Conflicts: src/plugins/platforms/cocoa/ src/plugins/platforms/cocoa/ Change-Id: Ideea96d1b43d47b1d9b34e11c9986a88e240aa71
Diffstat (limited to 'examples/widgets/doc')
1 files changed, 10 insertions, 11 deletions
diff --git a/examples/widgets/doc/src/dirview.qdoc b/examples/widgets/doc/src/dirview.qdoc
index d9a16fa58d..6db339eced 100644
--- a/examples/widgets/doc/src/dirview.qdoc
+++ b/examples/widgets/doc/src/dirview.qdoc
@@ -37,6 +37,10 @@
\borderedimage dirview-example.png
+ \quotefromfile itemviews/dirview/main.cpp
+ \skipto QCommandLineParser parser
+ \printuntil parser.positionalArguments
The example supports a number of command line options.
These options include:
@@ -47,22 +51,17 @@
use custom directory options
- \quotefromfile itemviews/dirview/main.cpp
- \skipto QCommandLineParser parser
- \printuntil parser.positionalArguments
- Declares a QFileSystemModel as data model for viewing
- the local file system. QFileSystem works with a cache, that is,
- it is updated continually with QFileSystemWatcher on that folder.
\skipto QFileSystemModel
\printuntil tree.setModel
- Creates a model/view implementation called \c tree
- for viewing the filesystem.
+ Declares \c model as data model for reading the local filesystem.
+ \c model.setRootPath("") sets the current folder as the folder from
+ which \c model will start reading.
+ QTreeView object \c tree visualizes the filesystem in a tree structure.
\skipto tree.setAnimated(false)
\printuntil tree.setWindowTitle
- Sets some formatting options for \c tree.
+ Sets layout options for animation, indentation, sorting, and sizing of the
+ filesystem tree.