diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-04 15:49:43 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-04 15:49:43 +0100 |
| commit | e8f49da15071be2b17982f7f483abae197509f45 (patch) | |
| tree | d1061b98693792ca517341a9c1698c6f2a7c82ff /ChatView.qml | |
| parent | 23cc4be5bc02328fe73ccbd67493dd71ef2e2b8f (diff) | |
| download | yachat6-e8f49da15071be2b17982f7f483abae197509f45.tar.gz | |
Implement out messages
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) + } } } } |
