qt5base-lts/tests/auto/widgets
Marc Mutz 5dc83974f7 tst_QTreeView: Fix UB (invalid downcast, member call)
As reported by UBSan:

  tst_qtreeview.cpp:2187:36: runtime error: downcast of address 0x7ffc15749f20 which does not point to an object of type 'PublicView'
    0x7ffc15749f20: note: object is of type 'QTreeView'

Fix by making the test a friend of QTreeView (and, for
Clang, of QAbstractItemView) instead.

Change-Id: I5b748696ab441a91058f4d45a18bd5ed75a6e560
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-08-01 16:07:50 +00:00
..
dialogs tst_QFileSystemModel: Remove Win32LongFileName(). 2016-06-08 04:09:48 +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 Avoid missing paints when resizing GV with QOpenGLWidget viewport 2016-05-24 19:16:46 +00:00
itemviews tst_QTreeView: Fix UB (invalid downcast, member call) 2016-08-01 16:07:50 +00:00
kernel Remove tst_QWidget::immediateRepaintAfterShow(). 2016-06-04 18:47:54 +00:00
styles Enable testStyleOptionInit for all styles and fix affected styles. 2016-06-06 13:12:14 +00:00
util QCompleter::setModel(): Restore completion role 2016-07-13 13:45:44 +00:00
widgets QComboBox: fix crash on setEditable(false) called from editTextChanged() 2016-07-06 10:34:43 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00