2017-08-29 05:02:56 +00:00
|
|
|
import QtQuick 2.4
|
2017-08-29 14:28:33 +00:00
|
|
|
import QtQuick.Controls 2.1
|
|
|
|
import QtQuick.Controls.Material 2.1
|
2017-08-29 05:02:56 +00:00
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
property string name
|
|
|
|
property variant messageModel
|
|
|
|
|
2019-05-02 08:37:04 +00:00
|
|
|
MessageList {
|
2017-08-29 05:02:56 +00:00
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2019-05-02 08:37:04 +00:00
|
|
|
id: messagePane
|
2017-08-29 05:02:56 +00:00
|
|
|
anchors.margins: 16
|
|
|
|
model: messageModel
|
|
|
|
|
|
|
|
headerPositioning: ListView.OverlayHeader
|
|
|
|
|
2017-08-30 12:48:06 +00:00
|
|
|
header: Item {
|
2017-08-29 05:02:56 +00:00
|
|
|
z: 2
|
2017-08-30 12:48:06 +00:00
|
|
|
width: parent.width
|
|
|
|
height: 36
|
2017-08-31 18:54:29 +00:00
|
|
|
|
2017-08-29 05:02:56 +00:00
|
|
|
Label {
|
2017-08-30 12:48:06 +00:00
|
|
|
z: 3
|
2017-08-29 05:02:56 +00:00
|
|
|
anchors.fill: parent
|
2017-08-31 18:54:29 +00:00
|
|
|
anchors.leftMargin: 8
|
2017-08-29 05:02:56 +00:00
|
|
|
text: name
|
|
|
|
font.pixelSize: 18
|
|
|
|
font.weight: Font.Light
|
2017-08-30 12:48:06 +00:00
|
|
|
verticalAlignment: Label.AlignVCenter
|
|
|
|
}
|
|
|
|
|
2017-08-31 18:54:29 +00:00
|
|
|
Pane {
|
2017-08-30 12:48:06 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
opacity: 0.8
|
2017-08-29 05:02:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|