| 952 | } |
| 953 | |
| 954 | QStringList UBFeaturesController::getFileNamesInFolders() |
| 955 | { |
| 956 | QStringList strList; |
| 957 | |
| 958 | Q_ASSERT(curListModel); |
| 959 | |
| 960 | for (int i = 0; i < curListModel->rowCount(QModelIndex()); i++) { |
| 961 | QModelIndex ind = curListModel->index(i, 0); |
| 962 | if (!ind.isValid()) { |
| 963 | qDebug() << "incorrect model index catched"; |
| 964 | continue; |
| 965 | } |
| 966 | UBFeature curFeature = curListModel->data(ind, Qt::UserRole + 1).value<UBFeature>(); |
| 967 | if (curFeature.getType() == FEATURE_FOLDER) { |
| 968 | strList << QFileInfo(curFeature.getFullPath().toLocalFile()).fileName(); |
| 969 | } |
| 970 | } |
| 971 | |
| 972 | return strList; |
| 973 | } |
| 974 | |
| 975 | void UBFeaturesController::addNewFolder(QString name) |
| 976 | { |
no test coverage detected