diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-07-11 14:47:28 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-07-13 18:57:46 +0000 |
commit | 95f05dffe2c6a88acd7501341c6b909f5d6a54c2 (patch) | |
tree | 6d4f3313bbb72345be78998510b53741331d5db2 /src/imports/controls/material/ItemDelegate.qml | |
parent | f4a42a914ce2718259e683f860a86449d4aaff83 (diff) |
Material: trigger ripple effects on release for some controls
Android 5 used to trigger ripple effects on press, but Android 6 made
ripple effects a bit more subtle. For check boxes, radio buttons, and
switches it still triggers on press, but these controls where the wave
is larger, it's triggered on release instead.
Change-Id: Ib4d301d5ccf72d5db106bcc6ad6afee30cef0b1e
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/material/ItemDelegate.qml')
-rw-r--r-- | src/imports/controls/material/ItemDelegate.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/controls/material/ItemDelegate.qml b/src/imports/controls/material/ItemDelegate.qml index a493ecbd..79aa60ea 100644 --- a/src/imports/controls/material/ItemDelegate.qml +++ b/src/imports/controls/material/ItemDelegate.qml @@ -75,6 +75,7 @@ T.ItemDelegate { height: parent.height clip: visible + trigger: Ripple.Release pressed: control.pressed anchor: control active: control.down || control.visualFocus || control.hovered |