qt5base-lts/tests/auto/widgets/itemviews
Christian Ehrlicher 96c27eb710 QList/Table/TreeWidgetItem: Allow reseting values by passing the default value
The convenience functions setBackground(), setForeground() and
setSizeHint() a default constructed value as 'reset'. This means a
default constructed QBrush or QSize is returned in the data() function
which leads to an unexpected background or forground color or size hint.
Therefore check if the passed value is a default constructed value and
set an empty QVariant instead which.

[ChangeLog][QtWidgets][ItemViews] The convenience views
QList/Table/TreeWidgetItem now treat a default constructed QBrush or
QSize as an empty QVariant which allows to reset the values set to it's
default values.

Task-number: QTBUG-76423
Change-Id: I840570bbad3e5fd8c5b4b58903b4fd0066dbdeb7
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2019-11-22 22:02:15 +01:00
..
qabstractitemview Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
qcolumnview Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
qdatawidgetmapper tst_QDataWidgetMapper/QFileIconProvider/ItemEditorFactory: cleanup 2019-10-29 06:24:01 +01:00
qdirmodel Don't insert multiple names for the same role 2019-11-05 16:32:28 +00:00
qfileiconprovider tst_QDataWidgetMapper/QFileIconProvider/ItemEditorFactory: cleanup 2019-10-29 06:24:01 +01:00
qheaderview Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
qitemdelegate Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
qitemeditorfactory tst_QDataWidgetMapper/QFileIconProvider/ItemEditorFactory: cleanup 2019-10-29 06:24:01 +01:00
qitemview Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
qlistview Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
qlistwidget QList/Table/TreeWidgetItem: Allow reseting values by passing the default value 2019-11-22 22:02:15 +01:00
qtableview Merge remote-tracking branch 'origin/5.14' into 5.15 2019-10-25 01:00:16 +02:00
qtablewidget QList/Table/TreeWidgetItem: Allow reseting values by passing the default value 2019-11-22 22:02:15 +01:00
qtreeview Merge remote-tracking branch 'origin/5.14' into 5.15 2019-11-15 16:29:40 +01:00
qtreewidget QList/Table/TreeWidgetItem: Allow reseting values by passing the default value 2019-11-22 22:02:15 +01:00
qtreewidgetitemiterator tst_QTreeWidget: cleanup 2019-09-19 07:57:41 +02:00
itemviews.pro Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00