From d648156c3823879865e48447084e0dd8e8c4bb37 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 12 Jul 2020 17:00:04 -0400 Subject: [PATCH] Use a HLabeledItem for MemberProfile power level --- .../RoomPane/MemberView/MemberProfile.qml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml index b1f4e0fc..69ca622b 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml @@ -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 } } }