diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2016-05-23 09:54:56 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-05-23 09:49:04 +0000 |
commit | 11d5a011e87b9137b33626032eed336b999395a0 (patch) | |
tree | 9aaeaa1046223bb357a5f1d2f55710cf95a5c0f6 /examples/quickcontrols2/gallery/pages | |
parent | d5dd0409f3d2e84289207a7b191ddc0cf1e79771 (diff) |
SwipeDelegate: rename exposure to swipe, active to complete
"swipe" is both shorter and easier to understand.
"complete" is easier to understand.
Task-number: QTBUG-53519
Change-Id: I87ecba4ac878f033111ee56fa618b80b227858a7
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'examples/quickcontrols2/gallery/pages')
-rw-r--r-- | examples/quickcontrols2/gallery/pages/DelegatePage.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/quickcontrols2/gallery/pages/DelegatePage.qml b/examples/quickcontrols2/gallery/pages/DelegatePage.qml index c3fa06c531..3d175fd8ba 100644 --- a/examples/quickcontrols2/gallery/pages/DelegatePage.qml +++ b/examples/quickcontrols2/gallery/pages/DelegatePage.qml @@ -70,13 +70,13 @@ Pane { text: labelText width: parent.width - onClicked: if (exposure.active) view.model.remove(ourIndex) + onClicked: if (swipe.complete) view.model.remove(ourIndex) Component { id: removeComponent Rectangle { - color: swipeDelegate.exposed && swipeDelegate.pressed ? "#333" : "#444" + color: swipeDelegate.swipe.complete && swipeDelegate.pressed ? "#333" : "#444" width: parent.width height: parent.height clip: true @@ -90,8 +90,8 @@ Pane { } } - exposure.left: removeComponent - exposure.right: removeComponent + swipe.left: removeComponent + swipe.right: removeComponent } } |