summaryrefslogtreecommitdiff
path: root/ContactList.qml
blob: 0f9f47c4845838a28c510f8b42401824488f0102 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
            })
        }
    }
}