diff options
| author | Andreas Buhr <andreas.buhr@qt.io> | 2020-09-04 15:54:19 +0200 |
|---|---|---|
| committer | Andreas Buhr <andreas.buhr@qt.io> | 2020-10-30 17:19:27 +0100 |
| commit | 91140eb7268bc36efceef0459e7b124ce333829e (patch) | |
| tree | a9c69248e57d2f02e1636e380ef8e22eeb1015e4 /src/gui/doc/snippets/textdocument-frames | |
| parent | 2da301fe46450eedabfde7860338a2c0066c550b (diff) | |
Adapt QDate::fromString() to accept negative year numbers
The documentation states that QDate::fromString() accepts negative
year numbers, but it did not. This patch adds support for negative
year numbers to QDate::fromString() and corresponding unit tests.
Furthermore, tests are added for positive signs (+) in date strings.
Fixes: QTBUG-84334
Task-number: QTBUG-84349
Change-Id: I575291e7b8317055d4bb530011d7b10c9cd37ae1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-frames')
0 files changed, 0 insertions, 0 deletions
