Add typing notification.

This commit is contained in:
Black Hat
2018-12-23 11:24:01 +08:00
parent e5fbdc15ff
commit 316d1429fa
4 changed files with 333 additions and 278 deletions

View File

@@ -220,8 +220,7 @@ Control {
text: currentRoom != null ? currentRoom.cachedInput : ""
background: Item {
}
background: Item {}
Rectangle {
width: currentRoom && currentRoom.hasFileUploading ? parent.width * currentRoom.fileUploadingProgress / 100 : 0
@@ -251,9 +250,6 @@ Control {
onTriggered: currentRoom.sendTypingNotification(true)
}
ToolTip.visible: currentRoom && currentRoom.hasUsersTyping
ToolTip.text: currentRoom ? currentRoom.usersTyping : ""
Keys.onReturnPressed: {
if (event.modifiers & Qt.ShiftModifier) {
insert(cursorPosition, "\n")