Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
va-sorokin committed Feb 3, 2012
1 parent 7d1c1bd commit 5fa84aa
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions DatePicker.qml
Expand Up @@ -53,15 +53,7 @@ Usage:
Item {
id: root

property QtObject platformStyle: DatePickerStyle {}

QtObject {
id: privateData

property int day: 1
property int month: 1
property int year: 2011
}
property DatePickerStyle platformStyle: DatePickerStyle {}

signal selectedDateChanged(date selectedDate)

Expand Down Expand Up @@ -228,26 +220,33 @@ Item {

WeekCell {
text: qsTr("Mon")
platformStyle: datePicker.platformStyle
}
WeekCell {
text: qsTr("Tue")
platformStyle: datePicker.platformStyle
}
WeekCell {
text: qsTr("Wed")
platformStyle: datePicker.platformStyle
}
WeekCell {
text: qsTr("Thu")
platformStyle: datePicker.platformStyle
}
WeekCell {
text: qsTr("Fri")
platformStyle: datePicker.platformStyle
}
WeekCell {
isWeekEnd: true
text: qsTr("Sat")
platformStyle: datePicker.platformStyle
}
WeekCell {
isWeekEnd: true
text: qsTr("Sun")
platformStyle: datePicker.platformStyle
}
}

Expand All @@ -266,6 +265,8 @@ Item {
interactive: false

delegate: DayCell {
platformStyle: datePicker.platformStyle

width: daysGrid.cellWidth;
height: daysGrid.cellHeight

Expand Down

0 comments on commit 5fa84aa

Please sign in to comment.