Fix a typo in tst_qtreewidget autotest.

Change-Id: I573467c3fdfc4b3d059b216258d39944ac546061
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
Jędrzej Nowacki 2012-01-20 15:51:26 +01:00 committed by Qt by Nokia
parent 6b85acd515
commit 389fc8885b

View File

@ -1838,7 +1838,7 @@ void tst_QTreeWidget::setData()
item->setBackground(j, backgroundColor);
QCOMPARE(itemChangedSpy.count(), 0);
QColor textColor((i == i) ? Qt::green : Qt::cyan);
QColor textColor((i == 1) ? Qt::green : Qt::cyan);
item->setTextColor(j, textColor);
QCOMPARE(item->textColor(j), textColor);
QCOMPARE(itemChangedSpy.count(), 1);