diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2023-03-02 11:06:53 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-03-10 11:17:17 +0100 |
commit | 17d0bf258b40064f35189ca3cf62b3179ca65c72 (patch) | |
tree | ad00604ab9375d2e64cc4c2e728f475488d3e97c /examples/qml | |
parent | e61d555a6d3b0796be725d4ee7190e8d4331ba38 (diff) |
Fix counting of number of months from one date to another
QQuickCalendarModelPrivate::getCount() was kludgey and wrong.
Rewrite it to use QCalendar::partsFromDate(), thereby bypassing repeat
calls to calendrical calculations, document what it's meant to be
doing and do that.
Fixes: QTBUG-111634
Pick-to: 6.5 6.4
Change-Id: I3bdf0233fc1b170eaeb1948ba74e93f636a29bd7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/qml')
0 files changed, 0 insertions, 0 deletions