Fix tst_QStyleSheetStyle::qproperty to not implicitly rely on QHash ordering.
authorRobin Burchell <robin+qt@viroteck.net>
Mon, 5 Mar 2012 11:31:03 +0000 (12:31 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 5 Mar 2012 13:09:24 +0000 (14:09 +0100)
commitd94165ab326f24a725720a705405067975b82af8
treed5b69d74d2caff8f1d5d331bc2eb5e636f8b7796
parentc01ef19e772c3c5dddccf8ea03e7db4e8d71784c
Fix tst_QStyleSheetStyle::qproperty to not implicitly rely on QHash ordering.

Changing qHash() for string data affected the order of properties to be set,
causing 'checkable' to be set after 'checked'.

As 'checkable' state affects 'checked' as well (setting it to false), this means
that the test was unreliable, a bug, which was exposed by the qHash change.

Change-Id: I03a8dd7d07609683d99f0b2a40012a147d409c6e
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp