2020-06-17 15:18:31 -04:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-06-13 09:49:20 -04:00
|
|
|
import "./samples/"
|
|
|
|
import "../../../../../imports"
|
|
|
|
import "../../../../../shared"
|
2020-06-17 17:54:03 -04:00
|
|
|
import "../../../Chat/components"
|
2020-06-18 09:54:08 -04:00
|
|
|
import "."
|
2020-06-13 09:49:20 -04:00
|
|
|
|
|
|
|
ListView {
|
2020-06-16 14:04:56 -04:00
|
|
|
id: contactList
|
2020-06-13 09:49:20 -04:00
|
|
|
property var contacts: ContactsData {}
|
2020-06-16 14:04:56 -04:00
|
|
|
property var selectable: true
|
|
|
|
property alias selectedContact: contactGroup.checkedButton
|
2020-06-13 09:49:20 -04: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 08:16:44 -04:00
|
|
|
isContact: model.isContact
|
2020-06-16 14:04:56 -04:00
|
|
|
selectable: contactList.selectable
|
2020-06-17 17:54:03 -04:00
|
|
|
profileClick: profilePopup.openPopup.bind(profilePopup)
|
|
|
|
}
|
|
|
|
|
|
|
|
ProfilePopup {
|
|
|
|
id: profilePopup
|
2020-06-16 14:04:56 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
ButtonGroup {
|
|
|
|
id: contactGroup
|
2020-06-13 09:49:20 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|