MCPcopy Create free account
hub / github.com/KDE/kdevelop / dirChanged

Method dirChanged

kdevplatform/shell/openprojectpage.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void 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
81void OpenProjectPage::showEvent(QShowEvent* ev)
82{

Callers

nothing calls this directly

Calls 7

dirOperatorMethod · 0.80
endsWithMethod · 0.80
projectFileExtensionMethod · 0.80
isEmptyMethod · 0.45
itemsMethod · 0.45
pathMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected