on xenial help sign in
MenuItemFactory: bind model calendar-day to menuItem currentDate
commitd089d6a3b484348dcac253d547db27daa83a7f1d authorMarco Trevisan (Treviño) <mail@3v1n0.net> dateWed 26 Oct 2016, 20:10 (10 years ago) parente2ced2d
1 file changed+7−1
qml/Panel/Indicators/MenuItemFactory.qml+7−1
qml/Panel/Indicators/MenuItemFactory.qml+7−1
@@ -506,13 +506,19 @@ Item {
506506
507507 Menus.CalendarMenu {
508508 objectName: "calendarMenu"
509− showWeekNumbers: menuData && menuData.actionState["show-week-numbers"]
510509 focus: true
511510
512511 property QtObject menuData: null
513512 property var menuModel: menuFactory.menuModel
514513 property int menuIndex: -1
515514
515+ showWeekNumbers: menuData && menuData.actionState["show-week-numbers"]
516+
517+ Binding on currentDate {
518+ when: menuData && menuData.actionState.hasOwnProperty("calendar-day") > 0
519+ value: new Date(menuData.actionState["calendar-day"] * 1000)
520+ }
521+
516522 Binding on eventDays {
517523 when: menuData && menuData.actionState.hasOwnProperty("appointment-days") > 0
518524 value: menuData.actionState["appointment-days"]