Accessibility: itemviews check for valid model.
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Fri, 19 Oct 2012 12:52:01 +0000 (14:52 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 Nov 2012 10:35:04 +0000 (11:35 +0100)
commit708985baa7753ad12aad986b4ab175f49b922be9
tree79cb7292766e555dfacc99a43615cc85b46eeeea
parentc309d424f45dc0e7b62fbbbabf20dbfe355f48a7
Accessibility: itemviews check for valid model.

The problem is that isValid() should return true as
soon as we have a view widget.
That sadly means we need to verify that the model is still
valid whenever accessing it.

This is a backport of the Qt 5 patch
(I9237528abf2f5c75a73382525103307e9ca15f05)

Change-Id: I9237528abf2f5c75a73382525103307e9ca15f05
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
src/plugins/accessible/widgets/itemviews.cpp