qt5base-lts/tests/auto/widgets
Edward Welbourne c27348985d Simplify date-time formatting in textForRole()
QAbstractItemDelegatePrivate::textForRole() was formatting date and
time separately, then gluing the parts back together with space.
QLocale can do that just fine itself (it has a toString() overload
that handles a QDateTime) and might even (some day) do it better.  To
my mild surprise, this proved sufficient to fix a problem with
date-time display in tool-tips, when the date-time includes a zone.

Extracted the date-time part of an existing selftest into a test of
its own and extended it to test times of each spec-type; verified that
the non-local spec cases of this all failed before this fix.

Task-number: QTBUG-61069
Change-Id: I6d6be0c27be9a557d8afc3ced200a10b2aaff816
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2017-11-30 20:21:42 +00:00
..
dialogs Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
effects Revert "QWidgetEffectSourcePrivate::draw(): Call render() when no shared painter exists" 2017-06-14 13:00:35 +00:00
graphicsview Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
itemviews Simplify date-time formatting in textForRole() 2017-11-30 20:21:42 +00:00
kernel Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
styles Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
util Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
widgets Raise the upper bound on years to 9999 2017-11-30 20:19:13 +00:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00