|
|
@ -79,6 +79,15 @@ void Config::ReadValues() {
|
|
|
|
Settings::values.layout_option =
|
|
|
|
Settings::values.layout_option =
|
|
|
|
static_cast<Settings::LayoutOption>(qt_config->value("layout_option").toInt());
|
|
|
|
static_cast<Settings::LayoutOption>(qt_config->value("layout_option").toInt());
|
|
|
|
Settings::values.swap_screen = qt_config->value("swap_screen", false).toBool();
|
|
|
|
Settings::values.swap_screen = qt_config->value("swap_screen", false).toBool();
|
|
|
|
|
|
|
|
Settings::values.custom_layout = qt_config->value("custom_layout", false).toBool();
|
|
|
|
|
|
|
|
Settings::values.custom_top_left = qt_config->value("custom_top_left", 0).toInt();
|
|
|
|
|
|
|
|
Settings::values.custom_top_top = qt_config->value("custom_top_top", 0).toInt();
|
|
|
|
|
|
|
|
Settings::values.custom_top_right = qt_config->value("custom_top_right", 400).toInt();
|
|
|
|
|
|
|
|
Settings::values.custom_top_bottom = qt_config->value("custom_top_bottom", 240).toInt();
|
|
|
|
|
|
|
|
Settings::values.custom_bottom_left = qt_config->value("custom_bottom_left", 40).toInt();
|
|
|
|
|
|
|
|
Settings::values.custom_bottom_top = qt_config->value("custom_bottom_top", 240).toInt();
|
|
|
|
|
|
|
|
Settings::values.custom_bottom_right = qt_config->value("custom_bottom_right", 360).toInt();
|
|
|
|
|
|
|
|
Settings::values.custom_bottom_bottom = qt_config->value("custom_bottom_bottom", 480).toInt();
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->beginGroup("Audio");
|
|
|
|
qt_config->beginGroup("Audio");
|
|
|
@ -207,6 +216,15 @@ void Config::SaveValues() {
|
|
|
|
qt_config->beginGroup("Layout");
|
|
|
|
qt_config->beginGroup("Layout");
|
|
|
|
qt_config->setValue("layout_option", static_cast<int>(Settings::values.layout_option));
|
|
|
|
qt_config->setValue("layout_option", static_cast<int>(Settings::values.layout_option));
|
|
|
|
qt_config->setValue("swap_screen", Settings::values.swap_screen);
|
|
|
|
qt_config->setValue("swap_screen", Settings::values.swap_screen);
|
|
|
|
|
|
|
|
qt_config->setValue("custom_layout", Settings::values.custom_layout);
|
|
|
|
|
|
|
|
qt_config->setValue("custom_top_left", Settings::values.custom_top_left);
|
|
|
|
|
|
|
|
qt_config->setValue("custom_top_top", Settings::values.custom_top_top);
|
|
|
|
|
|
|
|
qt_config->setValue("custom_top_right", Settings::values.custom_top_right);
|
|
|
|
|
|
|
|
qt_config->setValue("custom_top_bottom", Settings::values.custom_top_bottom);
|
|
|
|
|
|
|
|
qt_config->setValue("custom_bottom_left", Settings::values.custom_bottom_left);
|
|
|
|
|
|
|
|
qt_config->setValue("custom_bottom_top", Settings::values.custom_bottom_top);
|
|
|
|
|
|
|
|
qt_config->setValue("custom_bottom_right", Settings::values.custom_bottom_right);
|
|
|
|
|
|
|
|
qt_config->setValue("custom_bottom_bottom", Settings::values.custom_bottom_bottom);
|
|
|
|
qt_config->endGroup();
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
|
|
|
|
|
|
|
qt_config->beginGroup("Audio");
|
|
|
|
qt_config->beginGroup("Audio");
|
|
|
|