diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-04-26 14:02:41 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2016-04-26 13:26:24 +0000 |
commit | 138399e7e999a33ebdf88de53ccd9c68c4bc61af (patch) | |
tree | 55368cebef182a0dd08544b24f0931d89b516f4f /src/imports/controls/doc | |
parent | 8b9e55b11c62eb3ee92d76e7133c3bd0a55db605 (diff) |
Hide SwipeDelegate text when removing
This avoids the issue where the delegate's height is animated to 0,
but the text within the delegate goes outside the bounds of the
delegate.
Change-Id: Ic7ec64bfb6801dc23a3f65972a9acf18c0dbce1f
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/doc')
-rw-r--r-- | src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate.qml index 7a51314b..775aebfe 100644 --- a/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate.qml +++ b/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate.qml @@ -32,6 +32,7 @@ ListView { id: listView width: 100 height: 120 + clip: true model: ListModel { ListElement { name: "Apple" } @@ -72,6 +73,7 @@ ListView { color: rootDelegate.exposed && rootDelegate.pressed ? "#333" : "#444" width: parent.width height: parent.height + clip: true Label { text: "Remove" |