diff options
Diffstat (limited to 'ChatView.qml')
| -rw-r--r-- | ChatView.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ChatView.qml b/ChatView.qml index f06d4f7..7445572 100644 --- a/ChatView.qml +++ b/ChatView.qml @@ -2,6 +2,7 @@ import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.0 +import org.yachat.app 1.0 Page { @@ -13,6 +14,7 @@ Page header: CustToolbar { + id: header title: destination } @@ -33,6 +35,15 @@ Page { textarea.forceActiveFocus() } + + Connections + { + target: Yc + function onSent() + { + textarea.text = ""; + } + } } Button @@ -45,6 +56,10 @@ Page { text: qsTr("Send") enabled: textarea.length > 1 + onClicked: + { + Yc.send(header.title, textarea.text, false) + } } } } |
