Use a HLabeledItem for MemberProfile power level

This commit is contained in:
miruka 2020-07-12 17:00:04 -04:00
parent cc831d0640
commit d648156c38

View File

@ -152,25 +152,18 @@ HListView {
Layout.fillWidth: true
}
HColumnLayout {
spacing: theme.spacing / 2
HLabeledItem {
id: powerLevelItem
label.text: qsTr("Power level:")
label.horizontalAlignment: Qt.AlignHCenter
Layout.preferredWidth: parent.width
Layout.bottomMargin: theme.spacing
HLabel {
text: qsTr("Power level:")
wrapMode: HLabel.Wrap
horizontalAlignment: Qt.AlignHCenter
Layout.fillWidth: true
}
PowerLevelControl {
width: parent.width
defaultLevel: member.power_level
rowSpacing: parent.spacing
Layout.preferredWidth: parent.width
rowSpacing: powerLevelItem.spacing
}
}
}