diff options
author | Ulf Hermann <[email protected]> | 2019-11-14 16:29:40 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2019-11-15 11:58:45 +0100 |
commit | c67b2dacb89a3dd36c114ee260584c99105e2a0b (patch) | |
tree | b281df866f87a08ac206319d894fee54889985a1 | |
parent | b6b1d5899415fef3231120c08c56a1dc2e246940 (diff) |
examples: Fix SimpleLauncherDelegate.qml
Since the button is a simple Item, and the MouseArea is gone, the
"pressed" property we're interested in is actually the TapHandler's
"pressed".
Change-Id: Idc7262325c9e2db761041b1ae1151e62702e3eb8
Reviewed-by: Shawn Rutledge <[email protected]>
-rw-r--r-- | examples/quick/shared/SimpleLauncherDelegate.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/shared/SimpleLauncherDelegate.qml b/examples/quick/shared/SimpleLauncherDelegate.qml index 75aecf262c..7f07dea52a 100644 --- a/examples/quick/shared/SimpleLauncherDelegate.qml +++ b/examples/quick/shared/SimpleLauncherDelegate.qml @@ -61,12 +61,12 @@ Rectangle { GradientStop { position: 0 Behavior on color {ColorAnimation { duration: 100 }} - color: button.pressed ? "#e0e0e0" : "#fff" + color: tapHandler.pressed ? "#e0e0e0" : "#fff" } GradientStop { position: 1 Behavior on color {ColorAnimation { duration: 100 }} - color: button.pressed ? "#e0e0e0" : button.containsMouse ? "#f5f5f5" : "#eee" + color: tapHandler.pressed ? "#e0e0e0" : button.containsMouse ? "#f5f5f5" : "#eee" } } |