path: root/src/imports/controls/doc/src
diff options
authorMitch Curtis <mitch.curtis@qt.io>2016-10-13 14:15:19 +0200
committerMitch Curtis <mitch.curtis@qt.io>2016-10-13 12:20:37 +0000
commit9bd245a678b459c17bebe38a6cd8abd49b7be4e2 (patch)
tree3815d76b7d6f734049cc92b0b6e0ec20663cf2a1 /src/imports/controls/doc/src
parent21472cdc51507387b4d640c28bbd7aabf194fff3 (diff)
Share Control::focusReason notes with TextArea and TextField
Change-Id: Icf4feb1e29c40f10f483be63581f178fdc1cbd12 Task-number: QTBUG-55904 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/doc/src')
1 files changed, 15 insertions, 0 deletions
diff --git a/src/imports/controls/doc/src/includes/qquickcontrol-focusreason.qdocinc b/src/imports/controls/doc/src/includes/qquickcontrol-focusreason.qdocinc
new file mode 100644
index 00000000..b69e9e60
--- /dev/null
+++ b/src/imports/controls/doc/src/includes/qquickcontrol-focusreason.qdocinc
@@ -0,0 +1,15 @@
+This property holds the reason of the last focus change.
+\note This property does not indicate whether the control has \l {Item::activeFocus}
+ {active focus}, but the reason why the control either gained or lost focus.
+\value Qt.MouseFocusReason A mouse action occurred.
+\value Qt.TabFocusReason The Tab key was pressed.
+\value Qt.BacktabFocusReason A Backtab occurred. The input for this may include the Shift or Control keys; e.g. Shift+Tab.
+\value Qt.ActiveWindowFocusReason The window system made this window either active or inactive.
+\value Qt.PopupFocusReason The application opened/closed a pop-up that grabbed/released the keyboard focus.
+\value Qt.ShortcutFocusReason The user typed a label's buddy shortcut
+\value Qt.MenuBarFocusReason The menu bar took focus.
+\value Qt.OtherFocusReason Another reason, usually application-specific.
+\sa Item::activeFocus