diff options
author | David Boddie <david.boddie@nokia.com> | 2011-01-21 15:10:54 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-01-21 15:10:54 (GMT) |
commit | 84a1df764bf2e29e9e6e43f4f0e1a69201199fbc (patch) | |
tree | 73ece498671d7c7ed1df50c9a28b6be0fdfc892b /src/declarative/graphicsitems | |
parent | 2d5d354068e18de999c0316c2356726f9fe69fca (diff) | |
download | Qt-84a1df764bf2e29e9e6e43f4f0e1a69201199fbc.zip Qt-84a1df764bf2e29e9e6e43f4f0e1a69201199fbc.tar.gz Qt-84a1df764bf2e29e9e6e43f4f0e1a69201199fbc.tar.bz2 |
Doc: Fixed the syntax of QML code snippets.
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativepathview.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepathview.cpp b/src/declarative/graphicsitems/qdeclarativepathview.cpp index 87ea214..29838f6 100644 --- a/src/declarative/graphicsitems/qdeclarativepathview.cpp +++ b/src/declarative/graphicsitems/qdeclarativepathview.cpp @@ -379,14 +379,14 @@ void QDeclarativePathViewPrivate::regenerate() \l decrementCurrentIndex() or \l incrementCurrentIndex(), for example to navigate using the left and right arrow keys: - \code + \qml PathView { - ... + // ... focus: true Keys.onLeftPressed: decrementCurrentIndex() Keys.onRightPressed: incrementCurrentIndex() } - \endcode + \endqml The path view itself is a focus scope (see \l{qmlfocus#Acquiring Focus and Focus Scopes}{the focus documentation page} for more details). @@ -437,7 +437,7 @@ QDeclarativePathView::~QDeclarativePathView() Component { Rectangle { visible: PathView.onPath - ... + // ... } } \endqml @@ -697,14 +697,14 @@ void QDeclarativePathViewPrivate::setAdjustedOffset(qreal o) of the \l{PathView::onPath}{PathView.onPath} attached property to ensure that the highlight is hidden when flicked away from the path. - \code + \qml Component { Rectangle { visible: PathView.onPath - ... + // ... } } - \endcode + \endqml \sa highlightItem, highlightRangeMode */ |