on xenial help sign in
MenuItemFactory: add eventDays and showWeekNumber support to calendarMenu
commite2ced2d847ecb1a5c5d13b52f6cf0c7928755be2 authorMarco Trevisan (Treviño) <mail@3v1n0.net> dateWed 26 Oct 2016, 19:37 (10 years ago) parent6236761
1 file changed+7−1
qml/Panel/Indicators/MenuItemFactory.qml+7−1
qml/Panel/Indicators/MenuItemFactory.qml+7−1
@@ -506,12 +506,18 @@ Item {
506506
507507 Menus.CalendarMenu {
508508 objectName: "calendarMenu"
509− highlightWhenPressed: false
509+ showWeekNumbers: menuData && menuData.actionState["show-week-numbers"]
510510 focus: true
511511
512+ property QtObject menuData: null
512513 property var menuModel: menuFactory.menuModel
513514 property int menuIndex: -1
514515
516+ Binding on eventDays {
517+ when: menuData && menuData.actionState.hasOwnProperty("appointment-days") > 0
518+ value: menuData.actionState["appointment-days"]
519+ }
520+
515521 onSelectedDateChanged: {
516522 menuModel.activate(menuIndex, selectedDate.getTime() / 1000 | 0)
517523 }