mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-01 16:05:07 +01:00
Made Single Screen Layout config require relevant layout to be selected
This commit is contained in:
parent
fcc90e5a27
commit
58b8b4707c
@ -27,6 +27,17 @@ ConfigureLayout::ConfigureLayout(QWidget* parent)
|
|||||||
currentIndex == (uint)(Settings::LayoutOption::LargeScreen));
|
currentIndex == (uint)(Settings::LayoutOption::LargeScreen));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ui->single_screen_layout_config_group->setEnabled(
|
||||||
|
(Settings::values.layout_option.GetValue() == Settings::LayoutOption::SingleScreen) ||
|
||||||
|
(Settings::values.layout_option.GetValue() == Settings::LayoutOption::SeparateWindows));
|
||||||
|
connect(ui->layout_combobox,
|
||||||
|
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
|
||||||
|
[this](int currentIndex) {
|
||||||
|
ui->single_screen_layout_config_group->setEnabled(
|
||||||
|
(currentIndex == (uint)(Settings::LayoutOption::SingleScreen)) ||
|
||||||
|
(currentIndex == (uint)(Settings::LayoutOption::SeparateWindows)));
|
||||||
|
});
|
||||||
|
|
||||||
ui->custom_layout_group->setEnabled(
|
ui->custom_layout_group->setEnabled(
|
||||||
(Settings::values.layout_option.GetValue() == Settings::LayoutOption::CustomLayout));
|
(Settings::values.layout_option.GetValue() == Settings::LayoutOption::CustomLayout));
|
||||||
connect(ui->layout_combobox,
|
connect(ui->layout_combobox,
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="layout_group">
|
<widget class="QGroupBox" name="layout_group">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Screens</string>
|
<string>Screens</string>
|
||||||
</property>
|
</property>
|
||||||
@ -408,7 +411,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="separate_window_config_group">
|
<widget class="QGroupBox" name="single_screen_layout_config_group">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
|
Loading…
Reference in New Issue
Block a user