diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-11-11 14:55:13 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-11-15 20:00:21 +0100 |
commit | f3e26891061f26a42d009ec6395f82975019039d (patch) | |
tree | 675a1ad3e7f111ea9bfcbe4be1beb27de4611875 /src/corelib/time/qgregoriancalendar_p.h | |
parent | e6364f9c9c827573c02893adf71c17c6f1a538d6 (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.h | 2 |
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 |