telephant/qml/TweetView.qml
2017-08-29 16:28:33 +02:00

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
}
}
}
}