qt: Some formatting cleanup
This commit is contained in:
@@ -56,12 +56,12 @@ SettingsStorageControllers::save()
|
|||||||
auto *cbox = findChild<QComboBox *>(QString("comboBoxSCSI%1").arg(i + 1));
|
auto *cbox = findChild<QComboBox *>(QString("comboBoxSCSI%1").arg(i + 1));
|
||||||
scsi_card_current[i] = cbox->currentData().toInt();
|
scsi_card_current[i] = cbox->currentData().toInt();
|
||||||
}
|
}
|
||||||
hdc_current = ui->comboBoxHD->currentData().toInt();
|
hdc_current = ui->comboBoxHD->currentData().toInt();
|
||||||
fdc_type = ui->comboBoxFD->currentData().toInt();
|
fdc_type = ui->comboBoxFD->currentData().toInt();
|
||||||
cdrom_interface_current = ui->comboBoxCDInterface->currentData().toInt();
|
cdrom_interface_current = ui->comboBoxCDInterface->currentData().toInt();
|
||||||
ide_ter_enabled = ui->checkBoxTertiaryIDE->isChecked() ? 1 : 0;
|
ide_ter_enabled = ui->checkBoxTertiaryIDE->isChecked() ? 1 : 0;
|
||||||
ide_qua_enabled = ui->checkBoxQuaternaryIDE->isChecked() ? 1 : 0;
|
ide_qua_enabled = ui->checkBoxQuaternaryIDE->isChecked() ? 1 : 0;
|
||||||
cassette_enable = ui->checkBoxCassette->isChecked() ? 1 : 0;
|
cassette_enable = ui->checkBoxCassette->isChecked() ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -132,9 +132,9 @@ SettingsStorageControllers::onCurrentMachineChanged(int machineId)
|
|||||||
ui->comboBoxFD->setCurrentIndex(selectedRow);
|
ui->comboBoxFD->setCurrentIndex(selectedRow);
|
||||||
|
|
||||||
/*CD interface controller config*/
|
/*CD interface controller config*/
|
||||||
model = ui->comboBoxCDInterface->model();
|
model = ui->comboBoxCDInterface->model();
|
||||||
removeRows = model->rowCount();
|
removeRows = model->rowCount();
|
||||||
c = 0;
|
c = 0;
|
||||||
selectedRow = 0;
|
selectedRow = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
/* Skip "internal" if machine doesn't have it. */
|
/* Skip "internal" if machine doesn't have it. */
|
||||||
|
|||||||
Reference in New Issue
Block a user