Refactor code to prepare for calendar plugin system
!37 got a bit too big/complex so I'm trying to do the work in some smaller steps.
This is some prep refactoring, which boils down to the following ideas:
- Make CalindoriConfig and CalendarController proper C++ singletons and use qmlRegisterSingletonInstance to register them.
- Have CalendarController expose the active LocalCalendar object
- Use that to access the calendar instead of having a
property var calendar
everywhere in QML. This is only done partly - Expose the LocalCalendar's calendar property as raw pointer so we can consume it from QML
Edited by Nicolas Fella