- //QModelIndex* aIndex = toSourceModelIndex(theIndex);
- //if (!aIndex)
- // return false;
-
- //const QAbstractItemModel* aModel = aIndex->model();
-
- //if (isPartSubModel(aModel)) {
- // // if this is root node (Part item index)
- // if (!aIndex->parent().isValid()) {
- // if (myActivePart)
- // myActivePart->setItemsColor(PASSIVE_COLOR);
-
- // if (myActivePart == aModel) {
- // myActivePart = 0;
- // myActivePartIndex = QModelIndex();
- // } else {
- // myActivePart = (PartSet_PartModel*)aModel;
- // myActivePartIndex = theIndex;
- // }
-
- // if (myActivePart) {
- // myActivePart->setItemsColor(ACTIVE_COLOR);
- // myModel->setItemsColor(PASSIVE_COLOR);
- // } else
- // myModel->setItemsColor(ACTIVE_COLOR);
- // return true;
- // }
- // }