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 Layout.fillWidth: true
} }
HColumnLayout { HLabeledItem {
spacing: theme.spacing / 2 id: powerLevelItem
label.text: qsTr("Power level:")
label.horizontalAlignment: Qt.AlignHCenter
Layout.preferredWidth: parent.width Layout.preferredWidth: parent.width
Layout.bottomMargin: theme.spacing Layout.bottomMargin: theme.spacing
HLabel {
text: qsTr("Power level:")
wrapMode: HLabel.Wrap
horizontalAlignment: Qt.AlignHCenter
Layout.fillWidth: true
}
PowerLevelControl { PowerLevelControl {
width: parent.width
defaultLevel: member.power_level defaultLevel: member.power_level
rowSpacing: parent.spacing rowSpacing: powerLevelItem.spacing
Layout.preferredWidth: parent.width
} }
} }
} }