diff options
author | Bea Lam <bea.lam@nokia.com> | 2011-02-01 06:10:01 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2011-02-02 02:59:48 (GMT) |
commit | 0ee4b2f32a539ee5dc1c08a838f6584ca9d896d4 (patch) | |
tree | e6d39a57287245aeaf21a255d27380e2e8103ada /doc/src/examples | |
parent | 08a3db6efd9fa48701491f9e8a8070e825a132f5 (diff) | |
download | Qt-0ee4b2f32a539ee5dc1c08a838f6584ca9d896d4.zip Qt-0ee4b2f32a539ee5dc1c08a838f6584ca9d896d4.tar.gz Qt-0ee4b2f32a539ee5dc1c08a838f6584ca9d896d4.tar.bz2 |
Add initial size to ListView in FolderListModel example
Plus other minor doc changes
Diffstat (limited to 'doc/src/examples')
-rw-r--r-- | doc/src/examples/qml-folderlistmodel.qdoc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/src/examples/qml-folderlistmodel.qdoc b/doc/src/examples/qml-folderlistmodel.qdoc index c9d248e..0a01ce0 100644 --- a/doc/src/examples/qml-folderlistmodel.qdoc +++ b/doc/src/examples/qml-folderlistmodel.qdoc @@ -41,10 +41,15 @@ making the model available to QML. \section1 Usage from QML -The type we are creating can be used from QML like this: +The FolderListModel can be used from QML like this: \snippet doc/src/snippets/declarative/folderlistmodel.qml 0 +This displays a list of all subfolders and QML files in the current folder. + +The FolderListModel \c folder property can be set to change the folder that +is currently displayed. + \section1 Defining the Model We are subclassing QAbstractListModel which will allow us to give data to QML and |