D12438: Fix PlasmaCalendar widget to not mark days with minor events

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Sun Apr 22 10:20:36 UTC 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180422/111616af/attachment.html>


More information about the Kde-frameworks-devel mailing list