MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / onDirectoryChangeRequested

Method onDirectoryChangeRequested

src/interface/FileSelectionWidget.cpp:138–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void FileSelectionWidget::onDirectoryChangeRequested()
139{
140 auto* dialog = new QFileDialog();
141 dialog->setDirectory(currentDirectory());
142 dialog->setFileMode(QFileDialog::Directory);
143 dialog->setOption(QFileDialog::ShowDirsOnly);
144 dialog->setViewMode(QFileDialog::Detail);
145
146 QString result = dialog->getExistingDirectory();
147 if (result != "")
148 {
149 ui->path->setText(result);
150 enumerateFiles();
151 }
152}
153
154void FileSelectionWidget::onBookmarkRequested()
155{

Callers

nothing calls this directly

Calls 1

setTextMethod · 0.45

Tested by

no test coverage detected