diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2012-09-05 16:53:23 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-11 12:09:47 +0200 |
commit | e92c1976a6bc1a73b45f182a72b75d1617f677ca (patch) | |
tree | 70c699843b769917c81911b88f0523952be88eb6 /examples/widgets/doc/fetchmore.qdoc | |
parent | b5c0e0122ca427058f2faea4e196a95bf5457189 (diff) |
Fix example includes for qdoc.
Change-Id: Ifa6a99db27ce51529489bf077a839a3107b524d2
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
Diffstat (limited to 'examples/widgets/doc/fetchmore.qdoc')
-rw-r--r-- | examples/widgets/doc/fetchmore.qdoc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/widgets/doc/fetchmore.qdoc b/examples/widgets/doc/fetchmore.qdoc index 50810090ee..7ea0b30edf 100644 --- a/examples/widgets/doc/fetchmore.qdoc +++ b/examples/widgets/doc/fetchmore.qdoc @@ -26,7 +26,7 @@ ****************************************************************************/ /*! - \example widgets/itemviews/fetchmore + \example itemviews/fetchmore \title Fetch More Example The Fetch More example shows how two add items to an item view @@ -56,7 +56,7 @@ contents of a directory. It will add items to itself only when requested to do so by the view. - \snippet widgets/itemviews/fetchmore/filelistmodel.h 0 + \snippet itemviews/fetchmore/filelistmodel.h 0 The secret lies in the reimplementation of \l{QAbstractItemModel::}{fetchMore()} and @@ -75,13 +75,13 @@ We start by checking out the \c setDirPath(). - \snippet widgets/itemviews/fetchmore/filelistmodel.cpp 0 + \snippet itemviews/fetchmore/filelistmodel.cpp 0 We use a QDir to get the contents of the directory. We need to inform QAbstractItemModel that we want to remove all items - if any - from the model. - \snippet widgets/itemviews/fetchmore/filelistmodel.cpp 1 + \snippet itemviews/fetchmore/filelistmodel.cpp 1 The \c canFetchMore() function is called by the view when it needs more items. We return true if there still are entries that we have @@ -89,7 +89,7 @@ And now, the \c fetchMore() function itself: - \snippet widgets/itemviews/fetchmore/filelistmodel.cpp 2 + \snippet itemviews/fetchmore/filelistmodel.cpp 2 We first calculate the number of items to fetch. \l{QAbstractItemModel::}{beginInsertRows()} and @@ -99,7 +99,7 @@ To complete the tour, we also look at \c rowCount() and \c data(). - \snippet widgets/itemviews/fetchmore/filelistmodel.cpp 4 + \snippet itemviews/fetchmore/filelistmodel.cpp 4 Notice that the row count is only the items we have added so far, i.e., not the number of entries in the directory. |