diff options
author | Mitch Curtis <mitch.curtis@nokia.com> | 2012-08-30 14:02:39 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-03 02:40:54 +0200 |
commit | ec57b20b65a3c5fa6fa0b225f4b52cfebf053194 (patch) | |
tree | fadab8431b26bd234bef5109c0a332db11dd2ea9 /examples/widgets/doc | |
parent | 8c1cb66712a339b09988d8ef2b15ce39678178a6 (diff) |
Properly reflect format changes in calendarwidget example.
This patch ensures that May 1st and the first Friday of each month also
have their formats updated when the corresponding checkboxes are
unchecked instead of just checked.
Task-number: QTBUG-26936
Change-Id: Ib5f77daf8d9000eeb18663b2e07e4842a70d22b6
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'examples/widgets/doc')
-rw-r--r-- | examples/widgets/doc/calendarwidget.qdoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/widgets/doc/calendarwidget.qdoc b/examples/widgets/doc/calendarwidget.qdoc index ad15bbaa0c..c6e86d1668 100644 --- a/examples/widgets/doc/calendarwidget.qdoc +++ b/examples/widgets/doc/calendarwidget.qdoc @@ -280,12 +280,12 @@ In \c reformatCalendarPage(), we set the text format of the first Friday in the month and May 1 in the current year. The text formats that are actually used depend on which check boxes are - checked. + checked and what the weekday/weekend formats are. QCalendarWidget lets us set the text format of individual dates with the \l{QCalendarWidget::}{setDateTextFormat()}. We chose to - set the dates when the calendar page changes, i.e., a new month is - displayed. We check which of the \c mayFirstCheckBox and \c - firstDayCheckBox, if any, are checked - and set the text formats accordingly. + set the date formats when the calendar page changes - i.e. a new month is + displayed - and when the weekday/weekend format is changed. + We check which of the \c mayFirstCheckBox and \c firstDayCheckBox, if any, + are checked and set the text formats accordingly. */ |