aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/fusion/SwipeDelegate.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-03-01 17:43:45 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2018-04-04 15:07:12 +0000
commit449ebc4fbc26db7b8ef4091f780163e3045b97c7 (patch)
treeacaf476ffff80dbca05aaeda418ba78307665933 /src/imports/controls/fusion/SwipeDelegate.qml
parentf249c3d30de43e6f0e4f8905f8a4090a912b0a08 (diff)
QQuickControl: update baseline offset automatically
...unless explicitly defined. All buttons repeated the same binding. [ChangeLog][Controls][Control] Unless explicitly specified, baselineOffset is now automatically updated based on the top padding of the control and the baselineOffset of the contentItem. Styles no longer need to specify the baselineOffset in QML. Change-Id: I9c6f61371fee05a06b5dd31b27d8baf9da0bdeeb Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/fusion/SwipeDelegate.qml')
-rw-r--r--src/imports/controls/fusion/SwipeDelegate.qml1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/imports/controls/fusion/SwipeDelegate.qml b/src/imports/controls/fusion/SwipeDelegate.qml
index 047cf976..5f833997 100644
--- a/src/imports/controls/fusion/SwipeDelegate.qml
+++ b/src/imports/controls/fusion/SwipeDelegate.qml
@@ -49,7 +49,6 @@ T.SwipeDelegate {
implicitHeight: Math.max(background ? background.implicitHeight : 0,
Math.max(contentItem.implicitHeight,
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
- baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 6
spacing: 6