summaryrefslogtreecommitdiffstats
path: root/src/corelib/time/qgregoriancalendar_p.h
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-11-11 14:55:13 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2021-11-15 20:00:21 +0100
commitf3e26891061f26a42d009ec6395f82975019039d (patch)
tree675a1ad3e7f111ea9bfcbe4be1beb27de4611875 /src/corelib/time/qgregoriancalendar_p.h
parente6364f9c9c827573c02893adf71c17c6f1a538d6 (diff)
Revise (recently-added) yearSharingWeekDays() to take a QDate
This lets it avoid a two-digit year that would clash with month or day. That shall make fixing up system locale date formatting run cleaner. Add a test for QGregorianCalendar's two extensions. Change-Id: I77083ff9d5e4035763250904a59fcf416286545b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/time/qgregoriancalendar_p.h')
-rw-r--r--src/corelib/time/qgregoriancalendar_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/time/qgregoriancalendar_p.h b/src/corelib/time/qgregoriancalendar_p.h
index e05e4d237f..7cec17c5a3 100644
--- a/src/corelib/time/qgregoriancalendar_p.h
+++ b/src/corelib/time/qgregoriancalendar_p.h
@@ -84,7 +84,7 @@ public:
static bool julianFromParts(int year, int month, int day, qint64 *jd);
// Used internally:
static int yearStartWeekDay(int year);
- static int yearSharingWeekDays(int year);
+ static int yearSharingWeekDays(QDate date);
};
QT_END_NAMESPACE