diff options
author | David Boddie <david.boddie@nokia.com> | 2010-11-24 12:48:14 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-11-24 12:48:14 (GMT) |
commit | 57d1545e4afc97517f1472e626c27b8009e904cc (patch) | |
tree | 417fb827edfd9e71cf50ebefe8726533160e379b /src/declarative | |
parent | d0694162b872befc8c57dbf900bbd502ce25b80d (diff) | |
download | Qt-57d1545e4afc97517f1472e626c27b8009e904cc.zip Qt-57d1545e4afc97517f1472e626c27b8009e904cc.tar.gz Qt-57d1545e4afc97517f1472e626c27b8009e904cc.tar.bz2 |
Doc: Added documentation about Tab and Backtab key handling.
Task-number: QTBUG-15569
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeitem.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitem.cpp b/src/declarative/graphicsitems/qdeclarativeitem.cpp index e0df751..93572a0 100644 --- a/src/declarative/graphicsitems/qdeclarativeitem.cpp +++ b/src/declarative/graphicsitems/qdeclarativeitem.cpp @@ -484,10 +484,18 @@ void QDeclarativeItemKeyFilter::componentComplete() \qmlproperty Item KeyNavigation::down These properties hold the item to assign focus to - when Key_Left, Key_Right, Key_Up or Key_Down are + when the left, right, up or down cursor keys are pressed. */ +/*! + \qmlproperty Item KeyNavigation::tab + \qmlproperty Item KeyNavigation::backtab + + These properties hold the item to assign focus to + when the Tab key or Shift+Tab key combination (Backtab) are pressed. +*/ + QDeclarativeKeyNavigationAttached::QDeclarativeKeyNavigationAttached(QObject *parent) : QObject(*(new QDeclarativeKeyNavigationAttachedPrivate), parent), QDeclarativeItemKeyFilter(qobject_cast<QDeclarativeItem*>(parent)) @@ -941,6 +949,20 @@ void QDeclarativeKeyNavigationAttached::keyReleased(QKeyEvent *event, bool post) */ /*! + \qmlsignal Keys::onTabPressed(KeyEvent event) + + This handler is called when the Tab key has been pressed. The \a event + parameter provides information about the event. +*/ + +/*! + \qmlsignal Keys::onBacktabPressed(KeyEvent event) + + This handler is called when the Shift+Tab key combination (Backtab) has + been pressed. The \a event parameter provides information about the event. +*/ + +/*! \qmlsignal Keys::onAsteriskPressed(KeyEvent event) This handler is called when the Asterisk '*' has been pressed. The \a event |