Doc: Mention reset methods for QCalendarWidget::maximumDate, minimumDate

Change-Id: Ic3bfbcec1ac7d31ab704b52e6560d44f4a2054e7
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
(cherry picked from commit bd9a32adca32c6ad36e6c42c08eed3e62e9f3490)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Kai Köhne 2023-08-27 16:13:02 +02:00 committed by Qt Cherry-pick Bot
parent 16c1d52a66
commit c02d99a7f9

View File

@ -2492,13 +2492,14 @@ void QCalendarWidget::showToday()
\snippet code/src_gui_widgets_qcalendarwidget.cpp 1 \snippet code/src_gui_widgets_qcalendarwidget.cpp 1
\endtable \endtable
The default minimum date is November 25, 4714 BCE.
When setting a minimum date, the maximumDate and selectedDate When setting a minimum date, the maximumDate and selectedDate
properties are adjusted if the selection range becomes invalid. If properties are adjusted if the selection range becomes invalid. If
the provided date is not a valid QDate object, the the provided date is not a valid QDate object, the
setMinimumDate() function does nothing. setMinimumDate() function does nothing.
The default minimum date is November 25, 4714 BCE.
You can restore this default by calling clearMinimumDate() (since Qt 6.6).
\sa setDateRange() \sa setDateRange()
*/ */
@ -2547,13 +2548,14 @@ void QCalendarWidget::clearMinimumDate()
\snippet code/src_gui_widgets_qcalendarwidget.cpp 2 \snippet code/src_gui_widgets_qcalendarwidget.cpp 2
\endtable \endtable
The default maximum date is December 31, 9999 CE.
When setting a maximum date, the minimumDate and selectedDate When setting a maximum date, the minimumDate and selectedDate
properties are adjusted if the selection range becomes invalid. If properties are adjusted if the selection range becomes invalid. If
the provided date is not a valid QDate object, the the provided date is not a valid QDate object, the
setMaximumDate() function does nothing. setMaximumDate() function does nothing.
The default maximum date is December 31, 9999 CE.
You can restore this default by calling clearMaximumDate() (since Qt 6.6).
\sa setDateRange() \sa setDateRange()
*/ */