| 43 | } |
| 44 | |
| 45 | QString normalizedPathSegment(QString path) { |
| 46 | path.replace('.', '/'); |
| 47 | while (path.startsWith('/')) { |
| 48 | path.remove(0, 1); |
| 49 | } |
| 50 | return path; |
| 51 | } |
| 52 | |
| 53 | void setItemName(QTreeWidgetItem* item, const QString& name) { |
| 54 | item->setText(kNameColumn, name); |
no test coverage detected