mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-10-30 03:37:52 +00:00
Large Screen Proportion config is greyed out when Large Screen is not selected
This commit is contained in:
parent
1d04033029
commit
1d318f7486
1 changed files with 11 additions and 1 deletions
|
@ -25,9 +25,19 @@ ConfigureLayout::ConfigureLayout(QWidget* parent)
|
|||
connect(ui->layout_combobox,
|
||||
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
|
||||
[this](int currentIndex) {
|
||||
ui->custom_layout_group->setEnabled(ui->layout_combobox->currentIndex() == 6);
|
||||
ui->custom_layout_group->setEnabled(ui->layout_combobox->currentIndex() ==
|
||||
(uint)(Settings::LayoutOption::CustomLayout));
|
||||
});
|
||||
|
||||
ui->large_screen_proportion->setEnabled(
|
||||
(Settings::values.layout_option.GetValue() == Settings::LayoutOption::LargeScreen));
|
||||
connect(
|
||||
ui->layout_combobox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
this, [this](int currentIndex) {
|
||||
ui->large_screen_proportion->setEnabled(ui->layout_combobox->currentIndex() ==
|
||||
(uint)(Settings::LayoutOption::LargeScreen));
|
||||
});
|
||||
|
||||
connect(ui->bg_button, &QPushButton::clicked, this, [this] {
|
||||
const QColor new_bg_color = QColorDialog::getColor(bg_color);
|
||||
if (!new_bg_color.isValid()) {
|
||||
|
|
Loading…
Reference in a new issue