2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-06-13 13:49:20 +00:00
|
|
|
import "./samples/"
|
|
|
|
import "../../../../../imports"
|
|
|
|
import "../../../../../shared"
|
2020-06-17 21:54:03 +00:00
|
|
|
import "../../../Chat/components"
|
2020-06-18 13:54:08 +00:00
|
|
|
import "."
|
2020-06-13 13:49:20 +00:00
|
|
|
|
|
|
|
ListView {
|
2020-06-16 18:04:56 +00:00
|
|
|
id: contactList
|
2020-06-13 13:49:20 +00:00
|
|
|
property var contacts: ContactsData {}
|
2020-06-16 18:04:56 +00:00
|
|
|
property var selectable: true
|
|
|
|
property alias selectedContact: contactGroup.checkedButton
|
2020-06-13 13:49:20 +00:00
|
|
|
|
|
|
|
anchors.topMargin: 48
|
|
|
|
anchors.top: element2.bottom
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
model: contacts
|
|
|
|
delegate: Contact {
|
|
|
|
name: model.name
|
|
|
|
address: model.address
|
|
|
|
identicon: model.identicon
|
2020-06-22 12:16:44 +00:00
|
|
|
isContact: model.isContact
|
2020-06-16 18:04:56 +00:00
|
|
|
selectable: contactList.selectable
|
2020-06-17 21:54:03 +00:00
|
|
|
profileClick: profilePopup.openPopup.bind(profilePopup)
|
|
|
|
}
|
|
|
|
|
|
|
|
ProfilePopup {
|
|
|
|
id: profilePopup
|
2020-06-16 18:04:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ButtonGroup {
|
|
|
|
id: contactGroup
|
2020-06-13 13:49:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|