Accessibility: itemviews check for valid model.
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Fri, 28 Sep 2012 17:43:52 +0000 (19:43 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 19 Oct 2012 00:44:40 +0000 (02:44 +0200)
commit9fa2e5a14db453de9d9fec58eeada87b486d3bad
tree6000610225a8b7d317d18dc15ac5156939da516e
parent89c53738de46c075e51bc0c185417318fd2d910a
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.

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