2017-08-29 14:28:33 +00:00
|
|
|
import QtQuick 2.4
|
|
|
|
import QtQuick.Controls 2.1
|
2017-08-29 05:02:56 +00:00
|
|
|
|
|
|
|
ListView {
|
2019-05-06 18:18:56 +00:00
|
|
|
property bool fadeMedia: true
|
|
|
|
|
2017-08-29 05:02:56 +00:00
|
|
|
id: view
|
|
|
|
spacing: 12
|
|
|
|
clip: true
|
|
|
|
|
|
|
|
ScrollBar.vertical: ScrollBar {
|
|
|
|
width: 8
|
2017-08-30 23:55:36 +00:00
|
|
|
background: Rectangle {
|
|
|
|
color: "transparent"
|
|
|
|
}
|
2017-08-29 05:02:56 +00:00
|
|
|
}
|
|
|
|
|
2019-05-06 18:18:56 +00:00
|
|
|
delegate: MessageDelegate {
|
|
|
|
fadeMedia: view.fadeMedia
|
|
|
|
}
|
2017-08-29 05:02:56 +00:00
|
|
|
|
|
|
|
Label {
|
|
|
|
anchors.fill: parent
|
|
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
|
|
verticalAlignment: Qt.AlignVCenter
|
|
|
|
visible: parent.count == 0
|
|
|
|
text: qsTr("No messages to show yet!")
|
|
|
|
font.bold: true
|
|
|
|
}
|
|
|
|
}
|