import QtQuick 2.12
import BTPhone 1.0
import QtQuick.Layouts 1.11

Item {
    id: root
    height: 55

    RowLayout {
        id: rootLayout
        anchors.fill: parent
        anchors.rightMargin: 15
        anchors.leftMargin: 15

        Image {
            id: iconImg1
            width: 100
            height: 100
            source: "image_sample.JPG"
            Layout.fillWidth: true
            Layout.fillHeight: true
            fillMode: Image.PreserveAspectFit
        }

        Text {
            id: nameText
            width: parent.width * 0.5
            text: name
            font.pixelSize: 25
            verticalAlignment: Text.AlignVCenter
            Layout.minimumWidth: parent.width * 0.6
            Layout.preferredWidth: parent.width * 0.6
            Layout.fillWidth: true
            Layout.fillHeight: true
        }

        Image {
            id: iconImg2
            width: 100
            height: 100
            source: "image_sample.JPG"
            Layout.fillHeight: true
            Layout.fillWidth: true
            fillMode: Image.PreserveAspectFit
        }

        Text {
            id: dateText
            text: date
            font.pixelSize: 20
            verticalAlignment: Text.AlignVCenter
            Layout.minimumWidth: parent.width * 0.2
            Layout.preferredWidth: parent.width * 0.2
            Layout.fillHeight: true
            Layout.fillWidth: true
        }
    }
}

/*##^##
Designer {
    D{i:1}
}
##^##*/

