36 lines
685 B
QML
36 lines
685 B
QML
|
pragma ComponentBehavior: Bound
|
||
|
import QtQuick
|
||
|
import QtQuick.Controls
|
||
|
|
||
|
Control {
|
||
|
id: control
|
||
|
|
||
|
property real dayWidth: 24
|
||
|
property alias fromDate: model.fromDate
|
||
|
property alias toDate: model.toDate
|
||
|
|
||
|
contentItem: Row {
|
||
|
Repeater {
|
||
|
model: model
|
||
|
|
||
|
delegate: Label {
|
||
|
required property string display
|
||
|
|
||
|
text: display
|
||
|
width: control.dayWidth
|
||
|
|
||
|
background: Rectangle {
|
||
|
border.color: "red"
|
||
|
border.width: 1
|
||
|
color: "yellow"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
TimelineDayModel {
|
||
|
id: model
|
||
|
|
||
|
}
|
||
|
}
|