aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/calendar/WeekNumberColumn.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-03-06 11:52:10 +0100
committerJari-Pekka Nurmi <jpnurmi@theqtcompany.com>2015-03-11 01:06:44 +0200
commita3921bcf01275425350c9c153fe92086a34d1403 (patch)
tree1c5c4dd36e9d19a36281bde723c7bf989bc70298 /src/imports/calendar/WeekNumberColumn.qml
parente9398b7465c7df38876d0c6528ea5c42bbd8bf6a (diff)
Implement Style as an attached property
Change-Id: I006ee566647e31d1a14919d164d7dd68539aae10 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/calendar/WeekNumberColumn.qml')
-rw-r--r--src/imports/calendar/WeekNumberColumn.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/calendar/WeekNumberColumn.qml b/src/imports/calendar/WeekNumberColumn.qml
index 15037be1..732a914a 100644
--- a/src/imports/calendar/WeekNumberColumn.qml
+++ b/src/imports/calendar/WeekNumberColumn.qml
@@ -44,7 +44,7 @@ AbstractWeekNumberColumn {
property Component delegate: Text {
text: model.weekNumber
font.bold: true
- color: control.style.textColor
+ color: control.Style.textColor
width: column.width ? column.width : implicitWidth
height: column.height ? column.height / 6 : implicitHeight
horizontalAlignment: Text.AlignHCenter
@@ -57,8 +57,8 @@ AbstractWeekNumberColumn {
implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding)
- leftPadding: style.padding
- rightPadding: style.padding
+ leftPadding: Style.padding
+ rightPadding: Style.padding
contentItem: Column {
id: column