src/hbwidgets/itemviews/hbtreeitemselectionmodel_p.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
--- 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();
                 }