Fixed a bug in which the text of the calendar did not appear

This commit is contained in:
2025-11-16 17:58:53 +02:00
parent 9f43833cb1
commit 76857eaeb8

View File

@@ -19,7 +19,6 @@ GridLayout {
Layout.fillHeight: true
delegate: Text {
text: weekNumber
font: control.font
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
color: myPalette.text
@@ -36,13 +35,11 @@ GridLayout {
Layout.fillWidth: true
Layout.fillHeight: true
delegate: Text {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
opacity: model.month === monthGrid.month ? 1 : 0
text: monthGrid.locale.toString(model.date, "d")
font: monthGrid.font
required property var model
}
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: model.day
color: myPalette.text
required property var model
}
}
}