mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-01 10:06:43 +01:00
Remove mono playback setting and fix the layout abit
This commit is contained in:
parent
6e463d1de3
commit
6f6d087fa2
@ -124,8 +124,6 @@ void BackendSettingsPage::Load() {
|
|||||||
ui_->spinbox_fadeduration->setValue(s_.value("FadeoutDuration", 2000).toInt());
|
ui_->spinbox_fadeduration->setValue(s_.value("FadeoutDuration", 2000).toInt());
|
||||||
ui_->spinbox_fadeduration_pauseresume->setValue(s_.value("FadeoutPauseDuration", 250).toInt());
|
ui_->spinbox_fadeduration_pauseresume->setValue(s_.value("FadeoutPauseDuration", 250).toInt());
|
||||||
|
|
||||||
ui_->checkbox_monoplayback->setChecked(s_.value("monoplayback", false).toBool());
|
|
||||||
|
|
||||||
#if defined(HAVE_ALSA)
|
#if defined(HAVE_ALSA)
|
||||||
ui_->lineedit_device->show();
|
ui_->lineedit_device->show();
|
||||||
ui_->widget_alsa_plugin->show();
|
ui_->widget_alsa_plugin->show();
|
||||||
@ -263,12 +261,10 @@ void BackendSettingsPage::Load_Output(QString output, QVariant device) {
|
|||||||
if (engine()->type() == Engine::GStreamer) {
|
if (engine()->type() == Engine::GStreamer) {
|
||||||
ui_->groupbox_buffer->setEnabled(true);
|
ui_->groupbox_buffer->setEnabled(true);
|
||||||
ui_->groupbox_replaygain->setEnabled(true);
|
ui_->groupbox_replaygain->setEnabled(true);
|
||||||
ui_->checkbox_monoplayback->setEnabled(true);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ui_->groupbox_buffer->setEnabled(false);
|
ui_->groupbox_buffer->setEnabled(false);
|
||||||
ui_->groupbox_replaygain->setEnabled(false);
|
ui_->groupbox_replaygain->setEnabled(false);
|
||||||
ui_->checkbox_monoplayback->setEnabled(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ui_->combobox_output->count() >= 1) Load_Device(output, device);
|
if (ui_->combobox_output->count() >= 1) Load_Device(output, device);
|
||||||
@ -399,8 +395,6 @@ void BackendSettingsPage::Save() {
|
|||||||
s_.setValue("FadeoutDuration", ui_->spinbox_fadeduration->value());
|
s_.setValue("FadeoutDuration", ui_->spinbox_fadeduration->value());
|
||||||
s_.setValue("FadeoutPauseDuration", ui_->spinbox_fadeduration_pauseresume->value());
|
s_.setValue("FadeoutPauseDuration", ui_->spinbox_fadeduration_pauseresume->value());
|
||||||
|
|
||||||
s_.setValue("monoplayback", ui_->checkbox_monoplayback->isChecked());
|
|
||||||
|
|
||||||
#ifdef HAVE_ALSA
|
#ifdef HAVE_ALSA
|
||||||
if (ui_->radiobutton_alsa_hw->isChecked()) s_.setValue("alsaplugin", static_cast<int>(alsa_plugin::alsa_hw));
|
if (ui_->radiobutton_alsa_hw->isChecked()) s_.setValue("alsaplugin", static_cast<int>(alsa_plugin::alsa_hw));
|
||||||
else if (ui_->radiobutton_alsa_plughw->isChecked()) s_.setValue("alsaplugin", static_cast<int>(alsa_plugin::alsa_plughw));
|
else if (ui_->radiobutton_alsa_plughw->isChecked()) s_.setValue("alsaplugin", static_cast<int>(alsa_plugin::alsa_plughw));
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>596</width>
|
<width>596</width>
|
||||||
<height>772</height>
|
<height>817</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -15,21 +15,18 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupbox_output">
|
<widget class="QGroupBox" name="groupbox_audio_output">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Audio output</string>
|
<string>Audio output</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="layout_audio_output">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_engine">
|
<layout class="QHBoxLayout" name="layout_engine">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>10</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_engine">
|
<widget class="QLabel" name="label_engine">
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>90</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Engine</string>
|
<string>Engine</string>
|
||||||
</property>
|
</property>
|
||||||
@ -64,15 +61,12 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_output">
|
<layout class="QHBoxLayout" name="layout_output">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>10</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_output">
|
<widget class="QLabel" name="label_output">
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>90</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Output</string>
|
<string>Output</string>
|
||||||
</property>
|
</property>
|
||||||
@ -107,15 +101,12 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_device" stretch="0,0,0,0">
|
<layout class="QHBoxLayout" name="layout_device">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>10</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_device">
|
<widget class="QLabel" name="label_device">
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>90</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Device</string>
|
<string>Device</string>
|
||||||
</property>
|
</property>
|
||||||
@ -173,15 +164,21 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QWidget" name="widget_alsa_plugin" native="true">
|
<widget class="QWidget" name="widget_alsa_plugin" native="true">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_alsaplugin">
|
<layout class="QHBoxLayout" name="layout_alsa_plugin">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_alsaplugin">
|
<widget class="QLabel" name="label_alsaplugin">
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>90</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>ALSA plugin</string>
|
<string>ALSA plugin</string>
|
||||||
</property>
|
</property>
|
||||||
@ -192,12 +189,6 @@
|
|||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>hw</string>
|
<string>hw</string>
|
||||||
</property>
|
</property>
|
||||||
@ -208,12 +199,6 @@
|
|||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>p&lughw</string>
|
<string>p&lughw</string>
|
||||||
</property>
|
</property>
|
||||||
@ -245,12 +230,19 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="Line" name="line_1">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupbox_buffer">
|
<widget class="QGroupBox" name="groupbox_buffer">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Buffer</string>
|
<string>Buffer</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QFormLayout" name="formLayout_5">
|
<layout class="QFormLayout" name="layout_buffer">
|
||||||
<property name="fieldGrowthPolicy">
|
<property name="fieldGrowthPolicy">
|
||||||
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||||
</property>
|
</property>
|
||||||
@ -314,6 +306,13 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="Line" name="line_2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupbox_replaygain">
|
<widget class="QGroupBox" name="groupbox_replaygain">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
@ -322,7 +321,7 @@
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Replay Gain</string>
|
<string>Replay Gain</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="layout_replay_gain">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkbox_replaygain">
|
<widget class="QCheckBox" name="checkbox_replaygain">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
@ -415,12 +414,19 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="Line" name="line_3">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupbox_fading">
|
<widget class="QGroupBox" name="groupbox_fading">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Fading</string>
|
<string>Fading</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<layout class="QVBoxLayout" name="layout_fading">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkbox_fadeout_stop">
|
<widget class="QCheckBox" name="checkbox_fadeout_stop">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -523,9 +529,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="layout_fading">
|
<layout class="QHBoxLayout" name="layout_fading_duration">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_fadingduration_2">
|
<widget class="QLabel" name="label_fading_duration_1">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Fading duration</string>
|
<string>Fading duration</string>
|
||||||
</property>
|
</property>
|
||||||
@ -551,7 +557,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="spacer_fading_2">
|
<spacer name="spacer_fading_duration_1">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
@ -569,17 +575,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkbox_monoplayback">
|
<spacer name="spacer_bottom">
|
||||||
<property name="toolTip">
|
|
||||||
<string>Changing mono playback preference will be effective for the next playing songs</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Mono playback</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user