--- a/src/hbwidgets/itemviews/hbtreeitemselectionmodel_p.cpp Mon Apr 19 14:02:13 2010 +0300
+++ b/src/hbwidgets/itemviews/hbtreeitemselectionmodel_p.cpp Mon May 03 12:48:33 2010 +0300
@@ -36,6 +36,9 @@
#include <QDebug>
+// For QMAP_INT__ITEM_STATE_DEPRECATED's sake. Removed when QMap<int,QVariant> based state item system is removed
+#include <hbabstractviewitem_p.h>
+
HbTreeItemSelectionModel::HbTreeItemSelectionModel( QAbstractItemModel *model,
HbAbstractItemViewPrivate *viewPrivate,
QObject *parent) :
@@ -117,7 +120,10 @@
if (item) {
item->setCheckState(Qt::PartiallyChecked);
}
+#ifndef QMAP_INT__ITEM_STATE_DEPRECATED
mViewPrivate->mContainer->setItemStateValue(parentIndex, HbAbstractViewItem::CheckStateKey, Qt::PartiallyChecked);
+#endif
+ mViewPrivate->mContainer->setItemTransientStateValue(parentIndex, "checkState", Qt::PartiallyChecked);
}
parentIndex = parentIndex.parent();
}