10
10
property bool showEvent;
11
11
property alias fontSize: dateLabel.font.pixelSize
13
property bool isSelected: false
14
sourceComponent: isToday && isCurrentMonth ? highLightComp : undefined
16
sourceComponent: (isToday && isCurrentMonth) || isSelected ? highLightComp : undefined
15
17
onSourceComponentChanged: {
16
width = Qt.binding( function() { return ( dateRootItem.height / 1.5 ); });
18
width = Qt.binding( function() {
19
var width = dateRootItem.height > dateRootItem.width ? dateRootItem.width :dateRootItem.height
20
return ( width / 1.1 );
17
22
height = Qt.binding ( function() { return width} );
18
23
anchors.centerIn = Qt.binding( function() { return dateLabel});
71
if( isToday && !isSelected ) {
80
anchors.margins: units.gu(0.5)
81
color: isToday ? "#DD4814" : "darkgray"
66
87
anchors.fill: parent
68
var selectedDate = new Date();
69
selectedDate.setFullYear(intern.monthStartYear)
70
selectedDate.setMonth(intern.monthStartMonth + 1)
71
selectedDate.setDate(date)
72
selectedDate.setMinutes(60, 0, 0)
73
pageStack.push(Qt.resolvedUrl("NewEvent.qml"), {"date":selectedDate, "model":eventModel});
90
var selectedDate = new Date();
91
selectedDate.setFullYear(intern.monthStartYear)
92
selectedDate.setMonth(intern.monthStartMonth + 1)
93
selectedDate.setDate(date)
94
selectedDate.setMinutes(60, 0, 0)
95
pageStack.push(Qt.resolvedUrl("NewEvent.qml"), {"date":selectedDate, "model":eventModel});
76
99
var selectedDate = new Date(intern.monthStartYear,
77
100
intern.monthStartMonth,
78
101
intern.monthStartDate + index, 0, 0, 0, 0)
79
//If monthView is clicked then open selected DayView
80
if ( isYearView === false ) {
81
root.dateSelected(selectedDate);
83
//If yearView is clicked then open selected MonthView
103
//If yearView is clicked then open selected MonthView
85
104
root.monthSelected(selectedDate);
107
//If monthView is clicked then open selected DayView
108
root.dateSelected(selectedDate);
110
intern.selectedIndex = index