Doc: Update doc for Dir View Example
Task-number: QTBUG-60635 Change-Id: I4a23f4866c76b9f5c29653ca30e44c3b844a9aa8 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
This commit is contained in:
parent
5155942a0d
commit
b1bbce2609
@ -37,6 +37,10 @@
|
|||||||
|
|
||||||
\borderedimage dirview-example.png
|
\borderedimage dirview-example.png
|
||||||
|
|
||||||
|
\quotefromfile itemviews/dirview/main.cpp
|
||||||
|
\skipto QCommandLineParser parser
|
||||||
|
\printuntil parser.positionalArguments
|
||||||
|
|
||||||
The example supports a number of command line options.
|
The example supports a number of command line options.
|
||||||
These options include:
|
These options include:
|
||||||
\list
|
\list
|
||||||
@ -47,22 +51,17 @@
|
|||||||
use custom directory options
|
use custom directory options
|
||||||
\endlist
|
\endlist
|
||||||
|
|
||||||
\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
|
\skipto QFileSystemModel
|
||||||
\printuntil tree.setModel
|
\printuntil tree.setModel
|
||||||
|
|
||||||
Creates a model/view implementation called \c tree
|
Declares \c model as data model for reading the local filesystem.
|
||||||
for viewing the 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)
|
\skipto tree.setAnimated(false)
|
||||||
\printuntil tree.setWindowTitle
|
\printuntil tree.setWindowTitle
|
||||||
|
|
||||||
Sets some formatting options for \c tree.
|
Sets layout options for animation, indentation, sorting, and sizing of the
|
||||||
|
filesystem tree.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user