MenuItemFactory: activateByVariantString on calendar selection change using proper type
commit039ffa294d97a8bc96496bb940d8a499701b9f5f
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
dateFri 14 Oct 2016, 18:01 (10 years ago)
parent347fc2c
qml/Panel/Indicators/MenuItemFactory.qml+7
@@ -508,6 +508,13 @@ Item {
508508 objectName: "calendarMenu"
509509 highlightWhenPressed: false
510510 focus: true
511+
512+ property var menuModel: menuFactory.menuModel
513+ property int menuIndex: -1
514+
515+ onSelectedDateChanged: {
516+ menuModel.activateByVariantString(menuIndex, "int64 %1".arg(selectedDate.getTime() / 1000 | 0))
517+ }
511518 }
512519 }
513520