D17467: digital-clock: Show events on expanding applet

2018-12-11 Thread Marcus Behrendt
mbehrendt updated this revision to Diff 47409. mbehrendt added a comment. remove local variable "currentDate" and use "getDate" instead of "getDay" REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17467?vs=47407=47409 REVISION DETAIL

D17467: digital-clock: Show events on expanding applet

2018-12-11 Thread Marcus Behrendt
mbehrendt updated this revision to Diff 47407. mbehrendt added a comment. Total overhaul of the patch. I think I found the root cause for the events not being displayed. I also inserted some if clauses to reduce calculations. I also removed setting holidaysList.model = null as I could

D17467: digital-clock: Show events on expanding applet

2018-12-11 Thread Marco Martin
mart added inline comments. INLINE COMMENTS > CalendarView.qml:60 > +// would always be empty. > +holidaysList.model = > monthView.daysModel.eventsForDate(monthView.currentDate); > +hasExpanded = true; instead of storing a local hasExpanded,

D17467: digital-clock: Show events on expanding applet

2018-12-10 Thread Marcus Behrendt
mbehrendt updated this revision to Diff 47317. mbehrendt added a comment. more simplifications REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17467?vs=47256=47317 REVISION DETAIL https://phabricator.kde.org/D17467 AFFECTED FILES

D17467: digital-clock: Show events on expanding applet

2018-12-10 Thread Marcus Behrendt
mbehrendt added a reviewer: Plasma. mbehrendt added a comment. REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D17467 To: mbehrendt, #plasma Cc: broulik, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol,

D17467: digital-clock: Show events on expanding applet

2018-12-10 Thread Marcus Behrendt
mbehrendt updated this revision to Diff 47256. mbehrendt marked an inline comment as done. mbehrendt added a comment. fix typos REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17467?vs=47255=47256 REVISION DETAIL

D17467: digital-clock: Show events on expanding applet

2018-12-10 Thread Marcus Behrendt
mbehrendt updated this revision to Diff 47255. mbehrendt added a comment. only once set hasExpanded = true REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17467?vs=47252=47255 REVISION DETAIL https://phabricator.kde.org/D17467 AFFECTED FILES

D17467: digital-clock: Show events on expanding applet

2018-12-10 Thread Marcus Behrendt
mbehrendt updated this revision to Diff 47252. mbehrendt added a comment. This should even be lighter REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17467?vs=47248=47252 REVISION DETAIL https://phabricator.kde.org/D17467 AFFECTED FILES

D17467: digital-clock: Show events on expanding applet

2018-12-10 Thread Marcus Behrendt
mbehrendt updated this revision to Diff 47248. mbehrendt added a comment. Besides checking for isExpanded this prevents from updating the holidaysList twice by checking if the date needs to be reset. REPOSITORY R120 Plasma Workspace CHANGES SINCE LAST UPDATE

D17467: digital-clock: Show events on expanding applet

2018-12-10 Thread Kai Uwe Broulik
broulik added inline comments. INLINE COMMENTS > CalendarView.qml:55 > monthView.resetToToday(); > +holidaysList.update(); > } I think this should check for `isExpanded` so it does not update the events (potentially heavy operation) when *closing* REPOSITORY R120

D17467: digital-clock: Show events on expanding applet

2018-12-09 Thread Marcus Behrendt
mbehrendt created this revision. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. mbehrendt requested review of this revision. REVISION SUMMARY When expanding the digital-clock applet the holidayList is not updated, so that events for the current day are not shown.