[calendar] Fix some missing properties and property settings

This commit is contained in:
Martin Klapetek 2015-11-17 17:43:47 -05:00
parent 89d79f9127
commit f746db2878

View File

@ -47,9 +47,12 @@ PinchArea {
property Item selectedItem
property int week;
property int firstDay: new Date(showDate.getFullYear(), showDate.getMonth(), 1).getDay()
property date today
property alias today: calendarBackend.today
property bool showWeekNumbers: false
property alias cellHeight: mainDaysCalendar.cellHeight
property QtObject daysModel: calendarBackend.daysModel
onPinchStarted: stack.currentItem.transformOrigin = pinch.center
onPinchUpdated: {
var item = stack.currentItem
@ -292,4 +295,8 @@ PinchArea {
}
}
}
Component.onCompleted: {
root.currentDate = calendarBackend.today
}
}