Switch member dialog to using ItemDelegate
This commit is contained in:
parent
cf43b7b9f0
commit
8ca1b93abb
@ -85,10 +85,20 @@ ApplicationWindow {
|
||||
enabled: !Settings.mobileMode
|
||||
}
|
||||
|
||||
delegate: RowLayout {
|
||||
delegate: ItemDelegate {
|
||||
id: del
|
||||
|
||||
onClicked: Rooms.currentRoom.openUserProfile(model.mxid)
|
||||
padding: Nheko.paddingMedium
|
||||
width: ListView.view.width
|
||||
height: memberLayout.implicitHeight
|
||||
background: Rectangle {
|
||||
color: roomMembersRoot.color
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
id: memberLayout
|
||||
|
||||
spacing: Nheko.paddingMedium
|
||||
|
||||
Avatar {
|
||||
@ -99,7 +109,7 @@ ApplicationWindow {
|
||||
userid: model.mxid
|
||||
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
|
||||
displayName: model.displayName
|
||||
onClicked: Rooms.currentRoom.openUserProfile(model.mxid)
|
||||
enabled: false
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
@ -150,6 +160,13 @@ ApplicationWindow {
|
||||
|
||||
}
|
||||
|
||||
CursorShape {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
footer: Item {
|
||||
width: parent.width
|
||||
visible: (members.numUsersLoaded < members.memberCount) && members.loadingMoreMembers
|
||||
|
Loading…
Reference in New Issue
Block a user