1import QtQuick 2.7 2import QtQuick.Layouts 1.3 3 4import Common 1.0 5import Linphone 1.0 6import Linphone.Styles 1.0 7 8// ============================================================================= 9 10Rectangle { 11 id: callControls 12 13 // --------------------------------------------------------------------------- 14 15 default property alias _content: content.data 16 17 property alias signIcon: signIcon.icon 18 property alias sipAddressColor: contact.sipAddressColor 19 property alias usernameColor: contact.usernameColor 20 property string sipAddress 21 22 // --------------------------------------------------------------------------- 23 24 signal clicked 25 26 // --------------------------------------------------------------------------- 27 28 color: CallControlsStyle.color 29 height: CallControlsStyle.height 30 31 MouseArea { 32 anchors.fill: parent 33 34 onClicked: callControls.clicked() 35 } 36 37 Icon { 38 id: signIcon 39 40 anchors { 41 left: parent.left 42 top: parent.top 43 } 44 45 iconSize: CallControlsStyle.signSize 46 } 47 48 RowLayout { 49 anchors { 50 fill: parent 51 leftMargin: CallControlsStyle.leftMargin 52 rightMargin: CallControlsStyle.rightMargin 53 } 54 55 spacing: 0 56 57 Contact { 58 id: contact 59 60 Layout.fillHeight: true 61 Layout.fillWidth: true 62 63 displayUnreadMessagesCount: true 64 65 entry: SipAddressesModel.getSipAddressObserver(sipAddress) 66 } 67 68 Item { 69 id: content 70 71 Layout.fillHeight: true 72 Layout.preferredWidth: callControls._content[0].width 73 } 74 } 75} 76