aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/gallery/pages
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2016-04-26 14:02:41 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2016-04-26 13:26:24 +0000
commit138399e7e999a33ebdf88de53ccd9c68c4bc61af (patch)
tree55368cebef182a0dd08544b24f0931d89b516f4f /examples/quickcontrols2/gallery/pages
parent8b9e55b11c62eb3ee92d76e7133c3bd0a55db605 (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 'examples/quickcontrols2/gallery/pages')
-rw-r--r--examples/quickcontrols2/gallery/pages/DelegatePage.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/quickcontrols2/gallery/pages/DelegatePage.qml b/examples/quickcontrols2/gallery/pages/DelegatePage.qml
index b4892682f8..c3fa06c531 100644
--- a/examples/quickcontrols2/gallery/pages/DelegatePage.qml
+++ b/examples/quickcontrols2/gallery/pages/DelegatePage.qml
@@ -79,6 +79,7 @@ Pane {
color: swipeDelegate.exposed && swipeDelegate.pressed ? "#333" : "#444"
width: parent.width
height: parent.height
+ clip: true
Label {
font.pixelSize: swipeDelegate.font.pixelSize