Details
-
Task
-
Resolution: Fixed
-
P3: Somewhat important
-
5.14, 6.6
-
None
-
-
13
-
165f63878 (dev), 33cc65328 (dev), bbdf2b86f (6.7), f09edb531 (tqtc/lts-6.5), f071d4ee8 (dev), 98847d215 (dev)
-
Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111
Description
We should have an example that explains how to write a plugin to implement a custom calendar backend for QCalendar. It should make clear that the backend API is, like the QPA, not subject to the usual compatibility promises.
A candidate example would be a (naïve – don't try to represent Sweden's transition) Julian-Gregorian calendar whose constructor takes a QDate at which to make the transition from Julian to Gregorian. (Unfortunately this can't use QJulianCalendar or QGregorianCalendar – they're not public API – so shall need to duplicate some code from them.)
Writing this example (and testing it works) may well uncover some things in need of fixing in the backend API.