qt6-bb10/tests/auto/widgets
Marc Mutz 4bf5a3c885 tst_QFormLayout: Fix UB (invalid enum value) in several functions
The code coerced a -123 into a QFormLayout::ItemFlags, which, however,
being an enum with enumeration values 0..2, only has valid numerical
values 0..3.

Fix by using 3 as the value to represent the invalid enum value, and
store this in a constant so as not to distribute this magic number
all around the test class.

Change-Id: Ie5e93a69ef5a3acdde43030b022e0cce8aec484d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2016-11-22 05:38:45 +00:00
..
dialogs Stabilize tst_QFileDialog2::task143519_deleteAndRenameActionBehavior() 2016-11-15 09:56:31 +00:00
effects Purge sRGB chunks from PNGs in tests. 2016-03-29 08:39:43 +00:00
gestures Autotest: Remove blacklistings 2016-04-01 05:41:21 +00:00
graphicsview tst_QGraphicsItem: plug remaining leaks 2016-10-22 10:20:14 +00:00
itemviews Fix warnings in tst_q{table,list}widget 2016-11-16 20:21:50 +00:00
kernel tst_QFormLayout: Fix UB (invalid enum value) in several functions 2016-11-22 05:38:45 +00:00
styles Plug remaining leaks in tests/auto/widgets/style 2016-09-30 10:45:34 +00:00
util Plug remaining leaks in tests/auto/widgets/util 2016-10-02 11:28:23 +00:00
widgets tst_QDateTimeEdit: Use base method, not direct member access 2016-11-18 05:03:43 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00