MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onChangeSavePath

Method onChangeSavePath

Components/DataSaverUI.cpp:168–187  ·  view source on GitHub ↗

//////////////////////////// Slots ////////////////////////////////////////

Source from the content-addressed store, hash-verified

166
167///////////////////////////////// Slots ////////////////////////////////////////
168void
169DataSaverUI::onChangeSavePath(void)
170{
171 QFileDialog dialog(this->ui->saveButton);
172
173 dialog.setFileMode(QFileDialog::DirectoryOnly);
174 dialog.setAcceptMode(QFileDialog::AcceptOpen);
175 dialog.setWindowTitle(QString("Select current save directory"));
176
177 if (dialog.exec()) {
178 QString path = dialog.selectedFiles().first();
179 this->ui->savePath->setText(path);
180
181 if (this->config != nullptr)
182 this->config->path = path.toStdString();
183
184 this->refreshDiskUsage();
185 emit recordSavePathChanged(path);
186 }
187}
188
189void
190DataSaverUI::onRecordStartStop(void)

Callers

nothing calls this directly

Calls 1

refreshDiskUsageMethod · 0.45

Tested by

no test coverage detected