summaryrefslogtreecommitdiff
path: root/ChatView.qml
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-02-04 15:49:43 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-02-04 15:49:43 +0100
commite8f49da15071be2b17982f7f483abae197509f45 (patch)
treed1061b98693792ca517341a9c1698c6f2a7c82ff /ChatView.qml
parent23cc4be5bc02328fe73ccbd67493dd71ef2e2b8f (diff)
downloadyachat6-e8f49da15071be2b17982f7f483abae197509f45.tar.gz
Implement out messages
Diffstat (limited to 'ChatView.qml')
-rw-r--r--ChatView.qml15
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)
+ }
}
}
}