From 4e5e0ba604879c140c1483188ffbc818e822859f Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 23 Mar 2023 03:23:27 +0100 Subject: First commit --- ChatView.qml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ChatView.qml (limited to 'ChatView.qml') diff --git a/ChatView.qml b/ChatView.qml new file mode 100644 index 0000000..3da0998 --- /dev/null +++ b/ChatView.qml @@ -0,0 +1,46 @@ +import QtQuick 2.12 +import QtQuick.Window 2.12 +import QtQuick.Controls 2.0 +import QtQuick.Layouts 1.0 + +Page +{ + property string destination + + EncryptionPopup { + id: enctype + } + + header: CustToolbar + { + title: destination + } + + footer: Pane + { + RowLayout + { + anchors.fill: parent + + TextArea + { + id: textarea + wrapMode: TextArea.Wrap + Layout.fillWidth: true + placeholderText: "Compose message" + } + + Button + { + text: qsTr("enc") + onClicked: enctype.open() + } + + Button + { + text: qsTr("Send") + enabled: textarea.length > 1 + } + } + } +} -- cgit v1.2.3