telephant/qml/MessageList.qml
2019-05-13 08:06:05 +02:00

36 lines
693 B
QML

import QtQuick 2.4
import QtQuick.Controls 2.1
ListView {
property bool fadeMedia: true
id: view
spacing: 12
clip: true
ScrollBar.vertical: ScrollBar {
width: 12
background: Rectangle {
color: "transparent"
}
}
delegate: MessageDelegate {
fadeMedia: view.fadeMedia
}
Label {
anchors.fill: parent
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
visible: parent.count == 0
text: qsTr("No messages to show yet!")
font.bold: true
}
ScrollHelper {
id: scrollHelper
flickable: view
anchors.fill: view
}
}