Fixed a bug in which the text of the calendar did not appear
This commit is contained in:
@@ -19,7 +19,6 @@ GridLayout {
|
|||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
delegate: Text {
|
delegate: Text {
|
||||||
text: weekNumber
|
text: weekNumber
|
||||||
font: control.font
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
color: myPalette.text
|
color: myPalette.text
|
||||||
@@ -36,13 +35,11 @@ GridLayout {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
delegate: Text {
|
delegate: Text {
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
opacity: model.month === monthGrid.month ? 1 : 0
|
text: model.day
|
||||||
text: monthGrid.locale.toString(model.date, "d")
|
color: myPalette.text
|
||||||
font: monthGrid.font
|
required property var model
|
||||||
|
}
|
||||||
required property var model
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user