2
import Ubuntu.Components 1.1
8
property bool isCurrentMonth;
10
property bool showEvent;
13
width: parent.width < parent.height ? parent.width : parent.height
15
anchors.centerIn: columns
16
sourceComponent: isToday && isCurrentMonth ? highLightComp : undefined
21
anchors.centerIn: parent
23
spacing: units.gu(0.5)
27
//horizontalAlignment: Text.AlignHCenter
28
anchors.horizontalCenter: parent.horizontalCenter
29
fontSize: root.dateLabelFontSize
31
if( isCurrentMonth ) {
46
sourceComponent: showEvent ? eventIndicatorComp : undefined
47
anchors.horizontalCenter: dateLabel.horizontalCenter
52
id: eventIndicatorComp
63
var selectedDate = new Date();
64
selectedDate.setFullYear(intern.monthStartYear)
65
selectedDate.setMonth(intern.monthStartMonth + 1)
66
selectedDate.setDate(date)
67
selectedDate.setMinutes(60, 0, 0)
68
pageStack.push(Qt.resolvedUrl("NewEvent.qml"), {"date":selectedDate, "model":eventModel});
71
var selectedDate = new Date(intern.monthStartYear,
72
intern.monthStartMonth,
73
intern.monthStartDate + index, 0, 0, 0, 0)
74
//If monthView is clicked then open selected DayView
75
if ( isYearView === false ) {
76
root.dateSelected(selectedDate);
78
//If yearView is clicked then open selected MonthView
80
root.monthSelected(selectedDate);