summaryrefslogtreecommitdiff
path: root/ContactList.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 /ContactList.qml
First commitHEADmaster
Diffstat (limited to 'ContactList.qml')
-rw-r--r--ContactList.qml34
1 files changed, 34 insertions, 0 deletions
diff --git a/ContactList.qml b/ContactList.qml
new file mode 100644
index 0000000..0f9f47c
--- /dev/null
+++ b/ContactList.qml
@@ -0,0 +1,34 @@
+import QtQuick 2.12
+import QtQuick.Window 2.12
+import QtQuick.Controls 2.0
+import QtQuick.Layouts 1.0
+
+Page
+{
+ header: CustToolbar
+ {
+ title: qsTr("Contacts")
+
+ ToolButton
+ {
+ text: qsTr("+")
+ anchors.left: parent.left
+ }
+ }
+
+ ListView
+ {
+ width: parent.width
+ model: ["Alice", "Bob"]
+ anchors.fill: parent
+ delegate: ItemDelegate
+ {
+ width: parent.width
+ text: modelData
+ onClicked: stack.push("qrc:/ChatView.qml",
+ {
+ destination: modelData
+ })
+ }
+ }
+}