mirror of
https://github.com/muesli/telephant
synced 2024-12-12 04:52:26 +00:00
34 lines
728 B
QML
34 lines
728 B
QML
import QtQuick 2.4
|
|
import QtQuick.Controls 2.1
|
|
import QtQuick.Controls.Material 2.1
|
|
import QtQuick.Layouts 1.3
|
|
|
|
ColumnLayout {
|
|
property string name
|
|
property variant messageModel
|
|
|
|
TweetList {
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
|
|
id: tweetView
|
|
anchors.margins: 16
|
|
model: messageModel
|
|
|
|
headerPositioning: ListView.OverlayHeader
|
|
|
|
header: Rectangle {
|
|
width: parent.width
|
|
height: 32
|
|
z: 2
|
|
color: Material.background
|
|
|
|
Label {
|
|
anchors.fill: parent
|
|
text: name
|
|
font.pixelSize: 18
|
|
font.weight: Font.Light
|
|
}
|
|
}
|
|
}
|
|
}
|