Improve allignement of dropdown in room list section delegate
This commit is contained in:
@@ -75,20 +75,18 @@ Kirigami.ScrollablePage {
|
|||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
onTriggered: roomListModel.setCategoryVisible(section, !roomListModel.categoryVisible(section))
|
onTriggered: roomListModel.setCategoryVisible(section, !roomListModel.categoryVisible(section))
|
||||||
}
|
}
|
||||||
contentItem: Item {
|
contentItem: RowLayout {
|
||||||
implicitHeight: categoryName.implicitHeight
|
implicitHeight: categoryName.implicitHeight
|
||||||
Kirigami.Heading {
|
|
||||||
id: categoryName
|
|
||||||
level: 3
|
|
||||||
text: roomListModel.categoryName(section)
|
|
||||||
}
|
|
||||||
Kirigami.Icon {
|
Kirigami.Icon {
|
||||||
source: roomListModel.categoryVisible(section) ? "go-up" : "go-down"
|
source: roomListModel.categoryVisible(section) ? "go-up" : "go-down"
|
||||||
implicitHeight: Kirigami.Units.iconSizes.small
|
implicitHeight: Kirigami.Units.iconSizes.small
|
||||||
implicitWidth: Kirigami.Units.iconSizes.small
|
implicitWidth: Kirigami.Units.iconSizes.small
|
||||||
anchors.left: categoryName.right
|
}
|
||||||
anchors.leftMargin: Kirigami.Units.largeSpacing
|
Kirigami.Heading {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
id: categoryName
|
||||||
|
level: 3
|
||||||
|
text: roomListModel.categoryName(section)
|
||||||
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user