Fix copy-and-paste bug in QDTEP::getMaximum()
It had a copy of a line from getMinimum(). The results were predictably broken. Change-Id: I3582edb08696bec4311f43fc426f7e54dc069f53 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit a15a3fef0b5dae4e83bd94b23dd2418208159d05) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
9152fd9873
commit
7f70b5350a
@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2018 The Qt Company Ltd.
|
** Copyright (C) 2021 The Qt Company Ltd.
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the QtWidgets module of the Qt Toolkit.
|
** This file is part of the QtWidgets module of the Qt Toolkit.
|
||||||
@ -107,7 +107,7 @@ public:
|
|||||||
if (keyboardTracking)
|
if (keyboardTracking)
|
||||||
return maximum.toDateTime();
|
return maximum.toDateTime();
|
||||||
if (spec != Qt::LocalTime)
|
if (spec != Qt::LocalTime)
|
||||||
return QDateTime(QDATETIMEEDIT_DATE_MIN.startOfDay(spec));
|
return QDateTime(QDATETIMEEDIT_DATE_MAX.endOfDay(spec));
|
||||||
return QDateTimeParser::getMaximum();
|
return QDateTimeParser::getMaximum();
|
||||||
}
|
}
|
||||||
QLocale locale() const override { return q_func()->locale(); }
|
QLocale locale() const override { return q_func()->locale(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user