qt5base-lts/tests/auto/widgets
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
..
dialogs Merge remote-tracking branch 'origin/5.14' into 5.15 2019-11-08 09:11:02 +01:00
effects tst_qgraphicseffect: Wait for exposed instead of active 2019-10-15 20:39:32 +02:00
graphicsview Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
itemviews QList/Table/TreeWidgetItem: Allow reseting values by passing the default value 2019-11-22 22:02:15 +01:00
kernel QShortcut: add pmf ctor overloads 2019-11-14 19:59:23 +01:00
styles Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
util Widget tests: Skip tests that fail on Wayland 2019-10-18 10:53:34 +02:00
widgets Merge remote-tracking branch 'origin/5.14' into 5.15 2019-11-19 01:00:12 +01:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00