summaryrefslogtreecommitdiff
path: root/ChatView.qml
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-03-23 03:23:27 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-03-23 03:23:37 +0100
commit4e5e0ba604879c140c1483188ffbc818e822859f (patch)
treec37d8fc400386705aebdc649105ea3f87e1caf66 /ChatView.qml
First commitHEADmaster
Diffstat (limited to 'ChatView.qml')
-rw-r--r--ChatView.qml46
1 files changed, 46 insertions, 0 deletions
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
+ }
+ }
+ }
+}