summaryrefslogtreecommitdiff
path: root/src/controls/Styles/Base/TextFieldStyle.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-06-26 16:15:55 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-07-01 16:12:44 +0200
commite9ec17508e09d633c563d53cd43c2b7ef0fab82d (patch)
tree5d4bb45b264c8bfa1d3c9c3c2268330bc7224814 /src/controls/Styles/Base/TextFieldStyle.qml
parent3e4d0ed66b2f8f3cf7b9af9f14af67c045b94682 (diff)
downloadqtquickcontrols-e9ec17508e09d633c563d53cd43c2b7ef0fab82d.tar.gz
TextField/AreaStyle: add styleData.activated() signal for handles
This makes it possible for the Android style to implement "transient" handles that fade out when idle, and show up when the editor is clicked Change-Id: I53da6a4d5345c98b8b7286b30006982eaf17df45 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/controls/Styles/Base/TextFieldStyle.qml')
-rw-r--r--src/controls/Styles/Base/TextFieldStyle.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/controls/Styles/Base/TextFieldStyle.qml b/src/controls/Styles/Base/TextFieldStyle.qml
index f33d4876..13970867 100644
--- a/src/controls/Styles/Base/TextFieldStyle.qml
+++ b/src/controls/Styles/Base/TextFieldStyle.qml
@@ -162,9 +162,10 @@ Style {
the cursor position. The interactive area is determined by the
geometry of the handle delegate.
- The following read-only properties are available within the scope
+ The following signals and read-only properties are available within the scope
of the handle delegate:
\table
+ \row \li \b {styleData.activated()} [signal] \li Emitted when the handle is activated ie. the editor is clicked.
\row \li \b {styleData.pressed} : bool \li Whether the handle is pressed.
\row \li \b {styleData.position} : int \li The character position of the handle.
\row \li \b {styleData.lineHeight} : real \li The height of the line the handle is on.
@@ -179,9 +180,10 @@ Style {
the first selected character. The interactive area is determined
by the geometry of the handle delegate.
- The following read-only properties are available within the scope
+ The following signals and read-only properties are available within the scope
of the handle delegate:
\table
+ \row \li \b {styleData.activated()} [signal] \li Emitted when the handle is activated ie. the editor is clicked.
\row \li \b {styleData.pressed} : bool \li Whether the handle is pressed.
\row \li \b {styleData.position} : int \li The character position of the handle.
\row \li \b {styleData.lineHeight} : real \li The height of the line the handle is on.