summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2023-08-22 15:15:13 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-09 14:52:49 +0000
commit2f071d1890ddbd54883eb941682e940ba0cf8215 (patch)
treeb4a517134de27c52093853d2ae48df676a08e070
parent6f0efbe27aadd69ed5247926b122e986756c99a5 (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. 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>
-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 9d5674858c..02943493c0 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
@@ -2543,8 +2542,7 @@ void QCalendarWidget::setMinimumDate(QDate date)
\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