| 72 | } |
| 73 | |
| 74 | void FileListView::delFileItem(QString & filePath) |
| 75 | { |
| 76 | if (m_fileEditMap.contains(filePath)) |
| 77 | { |
| 78 | m_fileEditMap.remove(filePath); |
| 79 | QList<QListWidgetItem*> items = ui.filelistWidget->findItems(filePath, Qt::MatchFixedString); |
| 80 | |
| 81 | if (!items.isEmpty()) |
| 82 | { |
| 83 | delete items.at(0); |
| 84 | } |
| 85 | |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | QWidget* FileListView::getWidgetByFilePath(QString filePath) |
| 90 | { |
no test coverage detected