qt5base-lts/tests/auto
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
..
bic/data Add binary compatibility files for Qt5.13.0 for QtBase 2019-08-15 04:19:39 +00:00
cmake CMake: Add support for auto-importing plugins in CMake 2019-08-12 18:23:58 +02:00
concurrent Introduce QT_NO_LINKED_LIST and mark QtBase (almost) free of it 2019-07-12 14:26:30 +02:00
corelib Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
dbus Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
gui Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
guiapplauncher
installed_cmake
network Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
opengl Remove dead code from Qt 4 times 2019-08-20 22:27:46 +00:00
other Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
printsupport Remove the remaining usages of deprecated APIs of qtbase 2019-08-01 06:48:27 +02:00
shared Make tst_qwidget pass on High-DPI screens (Windows) 2019-06-03 10:41:08 +02:00
sql Merge remote-tracking branch 'origin/5.14' into 5.15 2019-10-25 01:00:16 +02:00
testlib Deprecate constructing QFlags from a pointer 2019-11-20 19:43:38 +01:00
tools Merge remote-tracking branch 'origin/5.14' into 5.15 2019-10-05 01:01:06 +02:00
widgets QList/Table/TreeWidgetItem: Allow reseting values by passing the default value 2019-11-22 22:02:15 +01:00
xml QDom: use QLocale::C when converting a double to a xml attribute 2019-11-19 17:33:33 +01:00
auto.pro
network-settings.h test: migrate QNetworkReply test to QRegularExpression 2019-06-10 16:49:19 +02:00