Doc: Fix documented default for QCalendarWidget maximumDate, minimumDate
The default minimum date and maximum date for QCalendarWidget are not the 'earliest and last dates' that QDate class can handle. Instead, minimumDate is initialized to November 25, 4714 BCE (first Julian day), and maximumDate to December 31, 9999 CE. Change-Id: Ice9289853a7e825ff2b31567efb81cdfb7d678a1 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 99371811594e813f26e014a3adc629746231765b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
8145c7d2dd
commit
e6157e356a
@ -2492,8 +2492,7 @@ void QCalendarWidget::showToday()
|
|||||||
\snippet code/src_gui_widgets_qcalendarwidget.cpp 1
|
\snippet code/src_gui_widgets_qcalendarwidget.cpp 1
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
By default, the minimum date is the earliest date that the QDate
|
The default minimum date is November 25, 4714 BCE.
|
||||||
class can handle.
|
|
||||||
|
|
||||||
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
|
||||||
@ -2548,8 +2547,7 @@ void QCalendarWidget::clearMinimumDate()
|
|||||||
\snippet code/src_gui_widgets_qcalendarwidget.cpp 2
|
\snippet code/src_gui_widgets_qcalendarwidget.cpp 2
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
By default, the maximum date is the last day the QDate class can
|
The default maximum date is December 31, 9999 CE.
|
||||||
handle.
|
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user