MCPcopy Create free account
hub / github.com/Neverous/efibooteditor / refreshDiskCombo

Method refreshDiskCombo

src/filepathdialog.cpp:1497–1514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1495}
1496
1497void FilePathDialog::refreshDiskCombo(bool force)
1498{
1499 ui->hd_disk->clear();
1500 const auto drives = DriveInfo::getAll(force);
1501 for(const auto &drive: drives)
1502 {
1503 QVariant item;
1504 item.setValue(drive);
1505 ui->hd_disk->addItem(drive.name, item);
1506 }
1507
1508 ui->hd_disk->insertSeparator(ui->hd_disk->count());
1509 ui->hd_disk->addItem("Custom");
1510
1511 int index = ui->hd_disk->count() - 1;
1512 ui->hd_disk->setCurrentIndex(index);
1513 diskChoiceChanged(index);
1514}
1515
1516QByteArray FilePathDialog::getData(const QPlainTextEdit &_data, int index) const
1517{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected