aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2')
-rw-r--r--src/quicktemplates2/qquickabstractbutton.cpp4
-rw-r--r--src/quicktemplates2/qquicktextarea.cpp18
2 files changed, 21 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickabstractbutton.cpp b/src/quicktemplates2/qquickabstractbutton.cpp
index c0ce6978..9157b4f9 100644
--- a/src/quicktemplates2/qquickabstractbutton.cpp
+++ b/src/quicktemplates2/qquickabstractbutton.cpp
@@ -204,7 +204,9 @@ void QQuickAbstractButtonPrivate::handleUngrab()
bool QQuickAbstractButtonPrivate::isPressAndHoldConnected()
{
Q_Q(QQuickAbstractButton);
- IS_SIGNAL_CONNECTED(q, QQuickAbstractButton, pressAndHold, ());
+ const auto signal = &QQuickAbstractButton::pressAndHold;
+ const QMetaMethod method = QMetaMethod::fromSignal(signal);
+ return q->isSignalConnected(method);
}
void QQuickAbstractButtonPrivate::startPressAndHold()
diff --git a/src/quicktemplates2/qquicktextarea.cpp b/src/quicktemplates2/qquicktextarea.cpp
index ee7d0ae3..95dd9f93 100644
--- a/src/quicktemplates2/qquicktextarea.cpp
+++ b/src/quicktemplates2/qquicktextarea.cpp
@@ -96,6 +96,24 @@ QT_BEGIN_NAMESPACE
\li Clips the content
\endlist
+ \section2 Tab Focus
+
+ By default, pressing the tab key while TextArea has
+ \l {Item::activeFocus}{active focus} results in a tab character being input
+ into the control itself. To make tab pass active focus onto another item,
+ use the attached \l KeyNavigation properties:
+
+ \code
+ TextField {
+ id: textField
+ }
+
+ TextArea {
+ KeyNavigation.priority: KeyNavigation.BeforeItem
+ KeyNavigation.tab: textField
+ }
+ \endcode
+
\sa TextField, {Customizing TextArea}, {Input Controls}
*/