| 1373 | } |
| 1374 | |
| 1375 | QString UBDocumentTreeModel::adjustNameForParentIndex(const QString &pName, const QModelIndex &pIndex) |
| 1376 | { |
| 1377 | int i = 0; |
| 1378 | QString newName = pName; |
| 1379 | QStringList siblingNames = nodeNameList(pIndex); |
| 1380 | while (siblingNames.contains(newName)) { |
| 1381 | newName = pName + " " + QVariant(++i).toString(); |
| 1382 | } |
| 1383 | |
| 1384 | return newName; |
| 1385 | } |
| 1386 | |
| 1387 | void UBDocumentTreeModel::fixNodeName(const QModelIndex &source, const QModelIndex &dest) |
| 1388 | { |
no test coverage detected