"View source" dialog.

This commit is contained in:
Black Hat
2018-09-11 13:14:56 +08:00
parent 63c7601942
commit 421316aa00
11 changed files with 102 additions and 27 deletions

View File

@@ -110,7 +110,7 @@ Drawer {
room: roomDrawer.room
}
delegate: ItemDelegate {
delegate: SwipeDelegate {
width: parent.width
height: 48
@@ -134,6 +134,25 @@ Drawer {
text: name
}
}
swipe.right: Rectangle {
width: parent.height
height: parent.height
anchors.right: parent.right
color: Material.accent
MaterialIcon {
anchors.fill: parent
icon: "\ue8fb"
color: "white"
}
SwipeDelegate.onClicked: room.kickMember(userId)
}
onClicked: inputField.insert(inputField.cursorPosition, name)
}
ScrollBar.vertical: ScrollBar {}