mirror of
https://github.com/muesli/telephant
synced 2024-11-26 13:20:18 +00:00
26 lines
514 B
QML
26 lines
514 B
QML
import QtQuick 2.4
|
|
import QtQuick.Controls 2.1
|
|
|
|
ListView {
|
|
id: view
|
|
spacing: 12
|
|
clip: true
|
|
|
|
ScrollBar.vertical: ScrollBar {
|
|
width: 8
|
|
background: Rectangle {
|
|
color: "transparent"
|
|
}
|
|
}
|
|
|
|
delegate: messagesDelegate
|
|
|
|
Label {
|
|
anchors.fill: parent
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
verticalAlignment: Qt.AlignVCenter
|
|
visible: parent.count == 0
|
|
text: qsTr("No messages to show yet!")
|
|
font.bold: true
|
|
}
|
|
}
|