on xenial help sign in
MenuItemFactory: add eventDays and showWeekNumber support to calendarMenu
e2ced2dMarco Trevisan (Treviño)
qml/Panel/Indicators/MenuItemFactory.qml+7−1
@@ -506,12 +506,18 @@ Item {
506
506
507 Menus.CalendarMenu {
507 Menus.CalendarMenu {
508 objectName: "calendarMenu"
508 objectName: "calendarMenu"
509− highlightWhenPressed: false
509+ showWeekNumbers: menuData && menuData.actionState["show-week-numbers"]
510 focus: true
510 focus: true
511
511
512+ property QtObject menuData: null
512 property var menuModel: menuFactory.menuModel
513 property var menuModel: menuFactory.menuModel
513 property int menuIndex: -1
514 property int menuIndex: -1
514
515
516+ Binding on eventDays {
517+ when: menuData && menuData.actionState.hasOwnProperty("appointment-days") > 0
518+ value: menuData.actionState["appointment-days"]
519+ }
520+
515 onSelectedDateChanged: {
521 onSelectedDateChanged: {
516 menuModel.activate(menuIndex, selectedDate.getTime() / 1000 | 0)
522 menuModel.activate(menuIndex, selectedDate.getTime() / 1000 | 0)
517 }
523 }