Use a HLabeledItem for MemberProfile power level
This commit is contained in:
parent
cc831d0640
commit
d648156c38
|
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user