mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-23 12:08:53 +00:00
Improve left tab menu Move settings to right panel instead of advanced Create MyProfile container Improve Contacts and Security
46 lines
1.1 KiB
QML
46 lines
1.1 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
import "./samples/"
|
|
import "../../../../../imports"
|
|
import "../../../../../shared"
|
|
import "../../../Chat/components"
|
|
import "."
|
|
|
|
ListView {
|
|
id: contactList
|
|
property var contacts: ContactsData {}
|
|
property var selectable: true
|
|
property alias selectedContact: contactGroup.checkedButton
|
|
property string searchString: ""
|
|
property string lowerCaseSearchString: searchString.toLowerCase()
|
|
|
|
width: parent.width
|
|
|
|
model: contacts
|
|
delegate: Contact {
|
|
name: model.name
|
|
address: model.address
|
|
identicon: model.identicon
|
|
isContact: model.isContact
|
|
selectable: contactList.selectable
|
|
profileClick: profilePopup.openPopup.bind(profilePopup)
|
|
visible: searchString === "" ||
|
|
model.name.toLowerCase().includes(lowerCaseSearchString) ||
|
|
model.address.toLowerCase().includes(lowerCaseSearchString)
|
|
}
|
|
|
|
ProfilePopup {
|
|
id: profilePopup
|
|
}
|
|
|
|
ButtonGroup {
|
|
id: contactGroup
|
|
}
|
|
}
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
}
|
|
##^##*/
|