From 99371811594e813f26e014a3adc629746231765b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Tue, 22 Aug 2023 15:15:13 +0200 Subject: 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. Pick-to: 5.15 6.2 6.5 6.6 Change-Id: Ice9289853a7e825ff2b31567efb81cdfb7d678a1 Reviewed-by: Volker Hilsheimer Reviewed-by: Edward Welbourne --- src/widgets/widgets/qcalendarwidget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/widgets/widgets/qcalendarwidget.cpp b/src/widgets/widgets/qcalendarwidget.cpp index 6058fc1f47..3970bef9c8 100644 --- a/src/widgets/widgets/qcalendarwidget.cpp +++ b/src/widgets/widgets/qcalendarwidget.cpp @@ -2492,8 +2492,7 @@ void QCalendarWidget::showToday() \snippet code/src_gui_widgets_qcalendarwidget.cpp 1 \endtable - By default, the minimum date is the earliest date that the QDate - class can handle. + The default minimum date is November 25, 4714 BCE. When setting a minimum date, the maximumDate and selectedDate 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 \endtable - By default, the maximum date is the last day the QDate class can - handle. + The default maximum date is December 31, 9999 CE. When setting a maximum date, the minimumDate and selectedDate properties are adjusted if the selection range becomes invalid. If -- cgit v1.2.3