kossebau created this revision. kossebau added a reviewer: Plasma. Restricted Application added a project: Frameworks. Restricted Application added a subscriber: Frameworks. kossebau requested review of this revision.
REVISION SUMMARY CalendarEvents::EventData (in KDeclarative) has a property isMinor, which is described as "If set to true, it won't be marked in the calendar grid". This patch fulfils that promise, by introducing separate roles on the model which explicitly report the existance of any major or any minor events at a given day, so that the marker loader can concentrate on the major events. TEST PLAN Using a plasmacalendar plugin which feeds events with isMinor=true the widget now only marks days which have major events. REPOSITORY R242 Plasma Framework (Library) BRANCH fixdisplayofminorevents REVISION DETAIL https://phabricator.kde.org/D12438 AFFECTED FILES src/declarativeimports/calendar/daysmodel.cpp src/declarativeimports/calendar/daysmodel.h src/declarativeimports/calendar/qml/DayDelegate.qml To: kossebau, #plasma Cc: #frameworks, michaelh, bruns