TokenSelectorNew: workaround for QTBUG-62411, minor sizing fixes

This commit is contained in:
Michał Cieślak 2024-09-04 18:49:07 +02:00 committed by Michał
parent d82499fd7b
commit 204d72cd40
2 changed files with 12 additions and 2 deletions

View File

@ -70,8 +70,8 @@ Control {
id: tokenSelectorIcon
objectName: "tokenSelectorIcon"
Layout.preferredWidth: 20
Layout.preferredHeight: 20
Layout.preferredWidth: 21
Layout.preferredHeight: 21
image.source: root.icon
}

View File

@ -124,6 +124,13 @@ Control {
section.property: "type"
section.delegate: StatusBaseText {
width: ListView.view.width
// Fixed height as a workaround for the
// https://bugreports.qt.io/browse/QTBUG-62411 bug
// causing improper first item positioning in some cases
// (overlapping with the section delegate)
height: 50
color: Theme.palette.baseColor1
padding: Style.current.padding
bottomPadding: 0
@ -164,6 +171,9 @@ Control {
icon.height: 12
text: qsTr("Back")
horizontalPadding: 21
bottomPadding: Style.current.halfPadding
onClicked: collectiblesStackView.pop(StackView.Immediate)
}