diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-10-15 13:58:50 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-10-18 04:12:44 +0000 |
commit | 11705b9f06e01bbc30ebd9cb211a8aa1c5ad5209 (patch) | |
tree | 1a0984fe506524bfc0036fc6fc60d24311b5f95f /src | |
parent | 7ce23e5d9234dd5717e34a2140fdd696f5198915 (diff) |
Mention a change to QDateTimeEdit::setDateTime()
I neglected to record the change in the Qt 6 changes documents that
help folk migrate from Qt 5. This is a follow-up to
commit 2a653fde48f7312ccd2f792d72d305061b410ae3
Fixes: QTBUG-97493
Change-Id: Ie496fdd05759eeeac4c7610db40ab6745b5e0640
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit c6bd13ab3d88baaef40675e8a14b74c42fa593e9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/doc/src/qt6-changes.qdoc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/widgets/doc/src/qt6-changes.qdoc b/src/widgets/doc/src/qt6-changes.qdoc index 1f8e97a4ad..c52b2645d1 100644 --- a/src/widgets/doc/src/qt6-changes.qdoc +++ b/src/widgets/doc/src/qt6-changes.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2020 The Qt Company Ltd. +** Copyright (C) 2021 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the documentation of the Qt Toolkit. @@ -80,6 +80,18 @@ The QComboBox::setModel() function is now virtual. + \section2 The QDateTimeEdit class + + When QDateTimeEdit::setDateTime() is called with a date-time whose + time-spec doesn't match that of the QDateTimeEdit instance, the + date-time is converted to the time-spec of the QDateTimeEdit. This + gives a date-time that describes the same instant in time, but + does so in the same terms as the QDateTimeEdit uses. Previously, + the date and time from the passed date-time were combined with the + time-spec of the widget, ignoring the time-spec of the date-time; + this could describe a different point in time than the one + described by the date-time passed. + \section1 ItemViews \section2 The QAbstractItemView class |