~pkunal-parmar/ubuntu-calendar-app/UrlInvocation

« back to all changes in this revision

Viewing changes to MonthComponent.qml

  • Committer: Kunal Parmar
  • Date: 2015-07-16 14:02:53 UTC
  • mfrom: (622.1.72 ubuntu-calendar-app)
  • Revision ID: pkunal.parmar@gmail.com-20150716140253-vvhhy1dzq0sft4wy
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
 
112
112
        property int dateFontSize: FontUtils.sizeToPixels(root.dateLabelFontSize)
113
113
        property int dayFontSize: FontUtils.sizeToPixels(root.dayLabelFontSize)
 
114
 
 
115
        property int selectedIndex: -1
 
116
    }
 
117
 
 
118
    onCurrentMonthChanged: {
 
119
        intern.selectedIndex = -1
114
120
    }
115
121
 
116
122
    Column{
216
222
 
217
223
            isToday: intern.todayDate == date && intern.isCurMonthTodayMonth
218
224
 
 
225
            isSelected: showEvents && intern.selectedIndex == index
 
226
 
219
227
            width: parent.dayWidth
220
228
            height: parent.dayHeight
221
229
            fontSize: intern.dateFontSize
222
 
            showEvent : showEvents
 
230
            showEvent: showEvents
223
231
                        && intern.eventStatus !== undefined
224
232
                        && intern.eventStatus[index] !== undefined
225
233
                        && intern.eventStatus[index]