diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-03 19:04:44 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-04 10:56:45 +0000 |
commit | 6eab7d10aa34b6a76cbd46a6af703d6c6fa77ca5 (patch) | |
tree | 004aa0cfa9163ed974bac982b1b879304be2446a /src/imports/calendar/qquickmonthgrid.cpp | |
parent | abacbbe4d2b92ebe9e488e61906ba1d36abb3ef8 (diff) |
Add Calendar singleton
Not yet super useful, as it only contains a Month enum to help with
JavaScript's zero-based months. Later on, we can add various calendar
related utility methods, such as calculating the next/prev month and
so on.
Change-Id: I7685eb931833fc0c30e2d5d4fe874d0618d054b4
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/calendar/qquickmonthgrid.cpp')
-rw-r--r-- | src/imports/calendar/qquickmonthgrid.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/imports/calendar/qquickmonthgrid.cpp b/src/imports/calendar/qquickmonthgrid.cpp index 1803c1d0..d1b9d966 100644 --- a/src/imports/calendar/qquickmonthgrid.cpp +++ b/src/imports/calendar/qquickmonthgrid.cpp @@ -182,8 +182,23 @@ QQuickMonthGrid::QQuickMonthGrid(QQuickItem *parent) : This property holds the number of the month. - The value must be in the range from \c 0 (January) to \c 11 (December). The default - value is the current month. + Supported values: + \list + \li \c Calendar.January (0) + \li \c Calendar.February (1) + \li \c Calendar.March (2) + \li \c Calendar.April (3) + \li \c Calendar.May (4) + \li \c Calendar.June (5) + \li \c Calendar.July (6) + \li \c Calendar.August (7) + \li \c Calendar.September (8) + \li \c Calendar.October (9) + \li \c Calendar.November (10) + \li \c Calendar.December (11) + \endlist + + The default value is the current month. */ int QQuickMonthGrid::month() const { |