From e8f49da15071be2b17982f7f483abae197509f45 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Wed, 4 Feb 2026 15:49:43 +0100 Subject: Implement out messages --- ChatView.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ChatView.qml') 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) + } } } } -- cgit v1.2.3