linphone-desktop/tests/ui/components/timeline/Timeline.qml
2016-09-26 09:29:06 +02:00

55 lines
1.1 KiB
QML

import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
import 'qrc:/ui/components/contact'
import 'qrc:/ui/components/image'
import 'qrc:/ui/components/scrollBar'
ColumnLayout {
id: item
property var model
Row {
Layout.preferredHeight: 35
spacing: 30
Icon {
iconSize: 20
}
Text {
color: '#5A585B'
font.pointSize: 13
height: parent.height
text: qsTr('timelineTitle')
verticalAlignment: Text.AlignVCenter
}
}
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: 1
color: '#DEDEDE'
}
ListView {
Layout.fillHeight: true
Layout.fillWidth: true
ScrollBar.vertical: ForceScrollBar { }
boundsBehavior: Flickable.StopAtBounds
clip: true
highlightRangeMode: ListView.ApplyRange
spacing: 0
model: item.model
delegate: Contact {
presence: $presence
sipAddress: $sipAddress
username: $username
width: parent.width
}
}
}