telephant/qml/TweetView.qml

35 lines
728 B
QML
Raw Normal View History

2017-08-29 05:02:56 +00:00
import QtQuick 2.4
import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.2
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
}
}
}
}