diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-03-23 03:23:27 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-03-23 03:23:37 +0100 |
| commit | 4e5e0ba604879c140c1483188ffbc818e822859f (patch) | |
| tree | c37d8fc400386705aebdc649105ea3f87e1caf66 /ContactList.qml | |
Diffstat (limited to 'ContactList.qml')
| -rw-r--r-- | ContactList.qml | 34 |
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 + }) + } + } +} |
