qt5base-lts/tests/auto/widgets/itemviews
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
..
qabstractitemview Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
qcolumnview testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qdatawidgetmapper tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdirmodel Remove remains of wince in .pro files 2017-07-03 05:32:51 +00:00
qfileiconprovider Updated license headers 2016-01-21 18:55:18 +00:00
qheaderview Merge remote-tracking branch 'origin/5.10' into dev 2017-11-30 09:16:58 +01:00
qitemdelegate Simplify date-time formatting in textForRole() 2017-11-30 20:21:42 +00:00
qitemeditorfactory Updated license headers 2016-01-21 18:55:18 +00:00
qitemview Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qlistview Merge remote-tracking branch 'origin/5.10' into dev 2017-11-23 09:36:03 +01:00
qlistwidget Fix tst_QListWidget::QTBUG50891_ensureSelectionModelSignalConnectionsAreSet 2017-07-21 22:10:28 +00:00
qtableview testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
qtablewidget tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qtreeview Merge remote-tracking branch 'origin/5.10' into dev 2017-11-30 09:16:58 +01:00
qtreewidget QTreeWidgetItem::insertChildren: ignore out of bounds indexes 2017-11-30 13:01:45 +00:00
qtreewidgetitemiterator tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
itemviews.pro Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00