summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2023-08-22 15:15:13 +0200
committerKai Köhne <kai.koehne@qt.io>2023-09-07 16:18:26 +0200
commit99371811594e813f26e014a3adc629746231765b (patch)
treef201734dec3fa6464d8a1aa20b810b9e52ced777
parent112e86a01eca9e2a8dde5d60a154385167107e92 (diff)
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 <volker.hilsheimer@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r--src/widgets/widgets/qcalendarwidget.cpp6
1 files 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