diff options
author | Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> | 2015-04-29 12:47:38 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-04-29 14:34:30 +0000 |
commit | e661fa1057641092428b5cb2db74b2f3a9496331 (patch) | |
tree | 7e80ccf771f0fd05d38f3ba43dbbf6773215f604 /src/controls/qquickbutton_p.h | |
parent | 758ecffe6450e3e64282161eeaa5f76fb8b158c3 (diff) |
QQuickButton: Add canceled signal
We now support the following pattern:
1. Press the mouse button => emit pressed
2. Move the mouse cursor outside the button => pressed = false
3. Release the mouse button => emit canceled
Note that getting the mouse grabbed away by another item, at any
stage, will also emit the canceled signal.
Change-Id: I97e485327370ea47943dfef75553000cee449a01
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/controls/qquickbutton_p.h')
-rw-r--r-- | src/controls/qquickbutton_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/qquickbutton_p.h b/src/controls/qquickbutton_p.h index 1622be76..903af206 100644 --- a/src/controls/qquickbutton_p.h +++ b/src/controls/qquickbutton_p.h @@ -76,6 +76,7 @@ public: Q_SIGNALS: void pressed(); void released(); + void canceled(); void clicked(); void textChanged(); void pressedChanged(); |