void DeviceExplorerModel::debug_printPath(const Device::NodePath& path) { const int pathSize = path.size(); for(int i = 0; i < pathSize; ++i) { std::cerr << path.at(i) << " "; } std::cerr << "\n"; }
QModelIndex DeviceExplorerModel::convertPathToIndex(const Device::NodePath& path) { QModelIndex iter; const int pathSize = path.size(); for(int i = 0; i < pathSize; ++i) { iter = index(path.at(i), 0, iter); } return iter; }