| 1331 | } |
| 1332 | |
| 1333 | void |
| 1334 | FileSystemModel::cleanAndRefreshItem(const FileSystemItemPtr& item) |
| 1335 | { |
| 1336 | if (!item) { |
| 1337 | return; |
| 1338 | } |
| 1339 | QModelIndex idx = index(item.get(), 0); |
| 1340 | if ( idx.isValid() ) { |
| 1341 | int count = item->childCount(); |
| 1342 | if (count > 0) { |
| 1343 | beginRemoveRows(idx, 0, count - 1); |
| 1344 | item->clearChildren(); |
| 1345 | endRemoveRows(); |
| 1346 | } |
| 1347 | |
| 1348 | _imp->populateItem(item); |
| 1349 | } |
| 1350 | } |
| 1351 | |
| 1352 | FileSystemItemPtr |
| 1353 | FileSystemModel::getItem(const QModelIndex &index) const |
nothing calls this directly
no test coverage detected