diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-04-14 13:06:37 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-14 13:13:06 -0700 |
commit | 525cd4c9e386767fa44eb8e3cbab13f25027da91 (patch) | |
tree | 2030987f7e102c8e8b26a52cc693ee0038fd559a /mobile-widgets/qml | |
parent | ee75812b5a547de88233312863cc94ba9a608e2b (diff) | |
download | subsurface-525cd4c9e386767fa44eb8e3cbab13f25027da91.tar.gz |
QML UI: correctly render dive list when showing delete button
This fixes the visual artifact that Willem reported.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 484c03383..27336495b 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -21,6 +21,7 @@ Kirigami.ScrollablePage { Component { id: diveDelegate Kirigami.AbstractListItem { + id: innerListItem enabled: true supportsMouseEvents: true checked: diveListView.currentIndex === model.index @@ -47,15 +48,16 @@ Kirigami.ScrollablePage { Row { width: parent.width - height: childrenRect.height - Kirigami.Units.smallSpacing + height: childrenRect.height + Kirigami.Units.smallSpacing spacing: horizontalPadding + add: Transition { NumberAnimation { property: "opacity"; from: 0; to: 1.0; duration: 400 } NumberAnimation { property: "scale"; from: 0; to: 1.0; duration: 400 } } Item { id: diveListEntry - width: parent.width - Kirigami.Units.gridUnit + width: parent.width - Kirigami.Units.gridUnit * (innerListItem.deleteButtonVisible ? 3 : 1) height: childrenRect.height - Kirigami.Units.smallSpacing Kirigami.Label { @@ -129,7 +131,6 @@ Kirigami.ScrollablePage { visible: deleteButtonVisible height: diveListEntry.height - Kirigami.Units.smallSpacing width: height - 3 * Kirigami.Units.smallSpacing - anchors.right: diveListEntry.right color: "#FF3030" antialiasing: true radius: Kirigami.Units.smallSpacing |