Qt: also enable/disable overlay centering checkboxes

This commit is contained in:
Megamouse 2018-10-20 12:13:28 +02:00
parent c9d8cd3613
commit 6e08d8e746

View File

@ -905,6 +905,8 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> guiSettings, std:
ui->perfOverlayOpacity->setEnabled(enabled);
ui->perfOverlayMarginX->setEnabled(enabled);
ui->perfOverlayMarginY->setEnabled(enabled);
ui->perfOverlayCenterX->setEnabled(enabled);
ui->perfOverlayCenterY->setEnabled(enabled);
};
EnablePerfOverlayOptions(ui->perfOverlayEnabled->isChecked());
connect(ui->perfOverlayEnabled, &QCheckBox::clicked, EnablePerfOverlayOptions);