Remove Q_ASSERT's in qitemview autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 6 May 2011 06:22:25 +0000 (16:22 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:46 +0000 (10:46 +1000)
commit175bb0eac6dff4911393593c363c61b7ebbb0851
tree88ca101bd066d429e68ecf9d638ac817f527abd5
parent6354d890f39127df44f3db77c2d7d2be854ea752
Remove Q_ASSERT's in qitemview autotest

Rather than aborting in debug builds and failing silently in release
builds, report a meaningful warning message and return an appropriate
value to indicate the error.

Change-Id: I0ceb0a0bfaef34cc6127d768cc75ecfc5a24e3c9
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 7cb0a3baeb361c9909e8ab2caf436e8e44b6a3b6)
tests/auto/qitemview/tst_qitemview.cpp