Add qobuz to scrobbler settings

This commit is contained in:
Jonas Kvinge 2020-09-22 00:00:02 +02:00
parent c688e3431d
commit 6fcde9fe5f
2 changed files with 39 additions and 20 deletions

View File

@ -101,8 +101,9 @@ void ScrobblerSettingsPage::Load() {
ui_->checkbox_source_local->setChecked(scrobbler_->sources().contains(Song::Source_LocalFile));
ui_->checkbox_source_cdda->setChecked(scrobbler_->sources().contains(Song::Source_CDDA));
ui_->checkbox_source_device->setChecked(scrobbler_->sources().contains(Song::Source_Device));
ui_->checkbox_source_tidal->setChecked(scrobbler_->sources().contains(Song::Source_Tidal));
ui_->checkbox_source_subsonic->setChecked(scrobbler_->sources().contains(Song::Source_Subsonic));
ui_->checkbox_source_tidal->setChecked(scrobbler_->sources().contains(Song::Source_Tidal));
ui_->checkbox_source_qobuz->setChecked(scrobbler_->sources().contains(Song::Source_Qobuz));
ui_->checkbox_source_stream->setChecked(scrobbler_->sources().contains(Song::Source_Stream));
ui_->checkbox_source_unknown->setChecked(scrobbler_->sources().contains(Song::Source_Unknown));
@ -139,8 +140,9 @@ void ScrobblerSettingsPage::Save() {
if (ui_->checkbox_source_local->isChecked()) sources << Song::TextForSource(Song::Source_LocalFile);
if (ui_->checkbox_source_cdda->isChecked()) sources << Song::TextForSource(Song::Source_CDDA);
if (ui_->checkbox_source_device->isChecked()) sources << Song::TextForSource(Song::Source_Device);
if (ui_->checkbox_source_tidal->isChecked()) sources << Song::TextForSource(Song::Source_Tidal);
if (ui_->checkbox_source_subsonic->isChecked()) sources << Song::TextForSource(Song::Source_Subsonic);
if (ui_->checkbox_source_tidal->isChecked()) sources << Song::TextForSource(Song::Source_Tidal);
if (ui_->checkbox_source_qobuz->isChecked()) sources << Song::TextForSource(Song::Source_Qobuz);
if (ui_->checkbox_source_stream->isChecked()) sources << Song::TextForSource(Song::Source_Stream);
if (ui_->checkbox_source_unknown->isChecked()) sources << Song::TextForSource(Song::Source_Unknown);

View File

@ -135,13 +135,6 @@
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="checkbox_source_tidal">
<property name="text">
<string>Tidal</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="checkbox_source_local">
<property name="text">
@ -149,13 +142,6 @@
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="checkbox_source_subsonic">
<property name="text">
<string>Subsonic</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="checkbox_source_device">
<property name="text">
@ -163,17 +149,38 @@
</property>
</widget>
</item>
<item row="2" column="1">
<item row="3" column="0">
<widget class="QCheckBox" name="checkbox_source_cdda">
<property name="text">
<string>CDDA</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QCheckBox" name="checkbox_source_stream">
<property name="text">
<string>Stream</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="checkbox_source_cdda">
<item row="0" column="1">
<widget class="QCheckBox" name="checkbox_source_subsonic">
<property name="text">
<string>CDDA</string>
<string>Subsonic</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="checkbox_source_tidal">
<property name="text">
<string>Tidal</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="checkbox_source_qobuz">
<property name="text">
<string>Qobuz</string>
</property>
</widget>
</item>
@ -398,6 +405,16 @@
<tabstop>checkbox_love_button</tabstop>
<tabstop>spinbox_submit</tabstop>
<tabstop>checkbox_albumartist</tabstop>
<tabstop>checkbox_show_error_dialog</tabstop>
<tabstop>checkbox_source_collection</tabstop>
<tabstop>checkbox_source_local</tabstop>
<tabstop>checkbox_source_device</tabstop>
<tabstop>checkbox_source_cdda</tabstop>
<tabstop>checkbox_source_stream</tabstop>
<tabstop>checkbox_source_subsonic</tabstop>
<tabstop>checkbox_source_tidal</tabstop>
<tabstop>checkbox_source_qobuz</tabstop>
<tabstop>checkbox_source_unknown</tabstop>
<tabstop>checkbox_lastfm_enable</tabstop>
<tabstop>checkbox_lastfm_https</tabstop>
<tabstop>button_lastfm_login</tabstop>