qt5base-lts/tests/auto/widgets/itemviews
Raschbauer, Reinhard 52c66e8515 QAbstractItemView: fix nullptr violation
If in a slot connected to QAbstractItemView::clicked
QAbstractItemView::setModel(nullptr) is called the method
QAbstractItemView::mouseReleaseEvent will cause a segmentation fault.
The problem is that the method QAbstractItemView::model used in
QAbstractItemView::mouseReleaseEvent will return a nullptr if a null
model was set. The solution is to used d->model since it is always a
valid model. (See line d->model =
(model ? model : QAbstractItemModelPrivate::staticEmptyModel());
in method QAbstractItemView::setModel)

Change-Id: I6f01bdeac64495ee4a76adcc7bf8da8a7719ef4d
Reviewed-by: David Faure <david.faure@kdab.com>
2017-08-04 08:36:29 +00:00
..
qabstractitemview QAbstractItemView: fix nullptr violation 2017-08-04 08:36:29 +00:00
qcolumnview tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdatawidgetmapper tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdirmodel Remove remains of wince in .pro files 2017-07-03 05:32:51 +00:00
qfileiconprovider Updated license headers 2016-01-21 18:55:18 +00:00
qheaderview QHeaderView: fix visual/logical index corruption when restoring state 2017-05-26 12:43:31 +00:00
qitemdelegate Plug remaining memleaks in tests/auto/widgets/itemviews 2017-01-26 10:32:51 +00:00
qitemeditorfactory Updated license headers 2016-01-21 18:55:18 +00:00
qitemview QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
qlistview QListView: Fix viewport size when checking scroll bar visibility 2017-07-07 08:10:01 +00:00
qlistwidget Plug remaining memleaks in tests/auto/widgets/itemviews 2017-01-26 10:32:51 +00:00
qtableview Use QSharedPointer::create() more 2017-07-19 13:40:42 +00:00
qtablewidget tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qtreeview Plug memleaks in tst_QTreeView 2017-01-26 10:32:35 +00:00
qtreewidget tst_QTreeWidget: Fix GCC 7 warnings about using uninitialized variables 2017-06-25 22:04:04 +00:00
qtreewidgetitemiterator tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
itemviews.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00