2
import Ubuntu.Components 1.1
8
property bool isCurrentMonth;
11
property alias fontSize: dateLabel.font.pixelSize
14
sourceComponent: isToday && isCurrentMonth ? highLightComp : undefined
15
onSourceComponentChanged: {
16
width = Qt.binding( function() { return parent.width < parent.height ? parent.width : parent.height } );
17
height = Qt.binding ( function() { return width} );
18
anchors.centerIn = Qt.binding( function() { return parent});
24
anchors.centerIn: parent
27
horizontalAlignment: Text.AlignHCenter
29
if( isCurrentMonth ) {
42
property bool shouldLoad: showEvents
43
&& intern.eventStatus !== undefined
44
&& intern.eventStatus[index] !== undefined
45
&&intern.eventStatus[index]
46
sourceComponent: shouldLoad ? eventIndicatorComp : undefined
47
onSourceComponentChanged: {
48
anchors.top = Qt.binding( function() { return dateLabel.bottom } );
49
anchors.horizontalCenter = Qt.binding( function () { return dateLabel.horizontalCenter } );
56
var selectedDate = new Date();
57
selectedDate.setFullYear(intern.monthStartYear)
58
selectedDate.setMonth(intern.monthStartMonth + 1)
59
selectedDate.setDate(date)
60
selectedDate.setMinutes(60, 0, 0)
61
pageStack.push(Qt.resolvedUrl("NewEvent.qml"), {"date":selectedDate, "model":eventModel});
64
var selectedDate = new Date(intern.monthStartYear,
65
intern.monthStartMonth,
66
intern.monthStartDate + index, 0, 0, 0, 0)
67
//If monthView is clicked then open selected DayView
68
if ( isYearView === false ) {
69
root.dateSelected(selectedDate);
71
//If yearView is clicked then open selected MonthView
73
root.monthSelected(selectedDate);