[calendar] Fix binding loops
This commit is contained in:
parent
b65195ee65
commit
f9d7fc87d5
@ -103,13 +103,17 @@ MouseArea {
|
||||
|
||||
Components.Label {
|
||||
id: label
|
||||
anchors.fill: parent
|
||||
anchors.fill: todayRect
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: model.label || dayNumber
|
||||
opacity: isCurrent ? 1.0 : 0.5
|
||||
wrapMode: Text.NoWrap
|
||||
elide: Text.ElideRight
|
||||
font.pixelSize: Math.max(theme.smallestFont.pixelSize, Math.floor(daysCalendar.cellHeight / 3))
|
||||
// This is to avoid the "Both point size and
|
||||
// pixel size set. Using pixel size" warnings
|
||||
font.pointSize: undefined
|
||||
color: today ? theme.backgroundColor : theme.textColor
|
||||
Behavior on color {
|
||||
ColorAnimation { duration: units.shortDuration * 2 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user