Jump to content

Plasma/QMLCalendar: Difference between revisions

From KDE Community Wiki
Mck182 (talk | contribs)
Start QML Calendar page
 
Mck182 (talk | contribs)
No edit summary
Line 16: Line 16:
* Figure out Plasma style for QQC - tbd
* Figure out Plasma style for QQC - tbd


Model properties
== Model properties ==
* selectedDate - date selected in the view
* selectedDate - date selected in the view
* first/lastVisibleDate - dates visible in the view
* first/lastVisibleDate - dates visible in the view
* locale - for setting the locale
* locale - for setting the locale


What roles we need in the model
== What roles we need in the model ==
* DateRole - returns date for the grid index
* DateRole - returns date for the grid index
* EventsRole - returns list of Event objects
* EventsRole - returns list of Event objects
Line 28: Line 28:
** Event 2
** Event 2


DateDelegate - needed properties
== DateDelegate - needed properties ==
* isCurrentDate
* isCurrentDate
* isCurrentMonth
* isCurrentMonth

Revision as of 10:08, 13 January 2014

The Goal

Have a QML Calendar Controls shared with Qt as much as possible.

The Design

Frontend done in styleable QtQuickControls, powered by C++/QAIModel backend, which different parties can extend, filling in their own events system.

The TODO

  • Calendar QML Controls - WIP
    • weeknumber Control
  • QQuickAbstractCalendarModel - WIP (70%)
  • QQuickCalendarModel (default Qt) - tbd
    • note - Mitch is currently working on QQCM, which will later be splitted into QQACM and QQCM
  • Figure out Plasma style for QQC - tbd

Model properties

  • selectedDate - date selected in the view
  • first/lastVisibleDate - dates visible in the view
  • locale - for setting the locale

What roles we need in the model

  • DateRole - returns date for the grid index
  • EventsRole - returns list of Event objects
    • Event 1 (to be done in later version)
      • Properties: eventType, startDay, endDay, startTime, endTime, ....
    • Event 2

DateDelegate - needed properties

  • isCurrentDate
  • isCurrentMonth