| 67 | } |
| 68 | |
| 69 | void OpenProjectPage::dirChanged(const QUrl& /*url*/) |
| 70 | { |
| 71 | if(fileWidget->selectedFiles().isEmpty()) { |
| 72 | const KFileItemList items = fileWidget->dirOperator()->dirLister()->items(); |
| 73 | for (const KFileItem& item : items) { |
| 74 | if(item.url().path().endsWith(ShellExtension::getInstance()->projectFileExtension()) && item.isFile()) { |
| 75 | fileWidget->setSelectedUrl(item.url()); |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | void OpenProjectPage::showEvent(QShowEvent* ev) |
| 82 | { |
nothing calls this directly
no test coverage detected