aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/calendar
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-07-06 18:54:51 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-07-08 10:53:31 +0000
commitd0efa4b5b0ed0869d0d0001610d4d8feb8ff117a (patch)
tree9dcdf7be26b8508ecc2336499de21446ea71270f /src/imports/calendar
parent29ee340c89a0868117fcab9d52688d62f06b5162 (diff)
Optimize DayfOfWeekRow & WeekNumberColumn
Apply the same improvements that were applied to CalendarView. Change-Id: I9c0302501f76c1ace091d6e347b7157be194b818 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/calendar')
-rw-r--r--src/imports/calendar/DayOfWeekRow.qml3
-rw-r--r--src/imports/calendar/WeekNumberColumn.qml3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/imports/calendar/DayOfWeekRow.qml b/src/imports/calendar/DayOfWeekRow.qml
index 581071b1..c1ecb0c8 100644
--- a/src/imports/calendar/DayOfWeekRow.qml
+++ b/src/imports/calendar/DayOfWeekRow.qml
@@ -46,6 +46,7 @@ AbstractDayOfWeekRow {
implicitHeight: Math.max(background ? background.implicitHeight : 0,
contentItem.implicitHeight + topPadding + bottomPadding)
+ spacing: 6
topPadding: 6
bottomPadding: 6
@@ -54,8 +55,6 @@ AbstractDayOfWeekRow {
text: model.shortName
font.bold: true
color: control.Theme.textColor
- width: contentItem.width ? contentItem.width / 7 : implicitWidth
- height: contentItem.height ? contentItem.height : implicitHeight
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
diff --git a/src/imports/calendar/WeekNumberColumn.qml b/src/imports/calendar/WeekNumberColumn.qml
index 221b9d71..069388bb 100644
--- a/src/imports/calendar/WeekNumberColumn.qml
+++ b/src/imports/calendar/WeekNumberColumn.qml
@@ -46,6 +46,7 @@ AbstractWeekNumberColumn {
implicitHeight: Math.max(background ? background.implicitHeight : 0,
contentItem.implicitHeight + topPadding + bottomPadding)
+ spacing: 6
leftPadding: 6
rightPadding: 6
@@ -54,8 +55,6 @@ AbstractWeekNumberColumn {
text: model.weekNumber
font.bold: true
color: control.Theme.textColor
- width: contentItem.width ? contentItem.width : implicitWidth
- height: contentItem.height ? contentItem.height / 6 : implicitHeight
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}