diff --git a/src/qml/RoomInformation.qml b/src/qml/RoomInformation.qml index 653dc5557..c5b9a0c69 100644 --- a/src/qml/RoomInformation.qml +++ b/src/qml/RoomInformation.qml @@ -197,6 +197,14 @@ QQC2.ScrollView { clip: true focus: true + section.property: "powerLevelString" + section.delegate: Kirigami.ListSectionHeader { + required property string section + + width: ListView.view.width + text: section + } + delegate: Delegates.RoundedItemDelegate { id: userDelegate @@ -230,7 +238,6 @@ QQC2.ScrollView { Layout.fillHeight: true } - QQC2.Label { text: userDelegate.name textFormat: Text.PlainText @@ -238,14 +245,6 @@ QQC2.ScrollView { Layout.fillWidth: true } - - QQC2.Label { - visible: userDelegate.powerLevel > 0 - - text: userDelegate.powerLevelString - color: Kirigami.Theme.disabledTextColor - textFormat: Text.PlainText - } } } }