diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-06-11 13:07:31 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-06-11 15:12:37 +0200 |
commit | 4354e2e745692ba31e9fbfbc509c0d1f14398bc6 (patch) | |
tree | ca6304b5696494cee35821183910059d46596746 | |
parent | aea87565b41c3a757d9b5d9aa76528ca68068361 (diff) | |
download | qtquickcontrols-4354e2e745692ba31e9fbfbc509c0d1f14398bc6.tar.gz |
CalendarStyle: document available styleData properties
Change-Id: I0eb2a3ef443fe0827cb6b5d1d4bfa44543025906
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
-rw-r--r-- | src/controls/Styles/Base/CalendarStyle.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/controls/Styles/Base/CalendarStyle.qml b/src/controls/Styles/Base/CalendarStyle.qml index f96d4577..9957c75d 100644 --- a/src/controls/Styles/Base/CalendarStyle.qml +++ b/src/controls/Styles/Base/CalendarStyle.qml @@ -175,6 +175,12 @@ Style { Styles the bar at the top of the calendar that contains the next month/previous month buttons and the selected date label. + + The properties provided to the delegate are: + \table + \row \li readonly property string \b styleData.title + \li The title of the calendar. + \endtable */ property Component navigationBar: Rectangle { height: 41 @@ -287,6 +293,21 @@ Style { The delegate that styles each weekday. The height of the weekday row is calculated based on the maximum implicit height of the delegates. + + The properties provided to each delegate are: + \table + \row \li readonly property int \b styleData.dayOfWeek + \li The day of the week this delegate represents. Possible values: + \list + \li \c Locale.Sunday + \li \c Locale.Monday + \li \c Locale.Tuesday + \li \c Locale.Wednesday + \li \c Locale.Thursday + \li \c Locale.Friday + \li \c Locale.Saturday + \endlist + \endtable */ property Component dayOfWeekDelegate: Rectangle { color: gridVisible ? "#fcfcfc" : "transparent" @@ -301,6 +322,14 @@ Style { The delegate that styles each week number. The width of the week number column is calculated based on the maximum implicit width of the delegates. + + The properties provided to each delegate are: + \table + \row \li readonly property int \b styleData.index + \li The index (0-5) of the delegate. + \row \li readonly property int \b styleData.weekNumber + \li The number of the week this delegate represents. + \endtable */ property Component weekNumberDelegate: Rectangle { implicitWidth: 30 |