diff options
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 + }) + } + } +} |
