Skip to content

Commit

Permalink
Change internet to streaming in settings and change order of settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Nov 28, 2018
1 parent 29a39b4 commit 046c221
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/settings/settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,13 @@ SettingsDialog::SettingsDialog(Application *app, QWidget *parent)
AddPage(Page_Transcoding, new TranscoderSettingsPage(this), general);
#endif

QTreeWidgetItem *iface = AddCategory(tr("User interface"));
AddPage(Page_Appearance, new AppearanceSettingsPage(this), iface);
AddPage(Page_Notifications, new NotificationsSettingsPage(this), iface);
AddPage(Page_GlobalShortcuts, new GlobalShortcutsSettingsPage(this), iface);

#if defined(HAVE_STREAM_TIDAL) || defined(HAVE_STREAM_DEEZER)
QTreeWidgetItem *internet = AddCategory(tr("Internet"));
QTreeWidgetItem *internet = AddCategory(tr("Streaming"));
#endif
#ifdef HAVE_STREAM_TIDAL
AddPage(Page_Tidal, new TidalSettingsPage(this), internet);
Expand All @@ -138,12 +143,6 @@ SettingsDialog::SettingsDialog(Application *app, QWidget *parent)
AddPage(Page_Deezer, new DeezerSettingsPage(this), internet);
#endif

// User interface
QTreeWidgetItem *iface = AddCategory(tr("User interface"));
AddPage(Page_GlobalShortcuts, new GlobalShortcutsSettingsPage(this), iface);
AddPage(Page_Appearance, new AppearanceSettingsPage(this), iface);
AddPage(Page_Notifications, new NotificationsSettingsPage(this), iface);

// List box
connect(ui_->list, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), SLOT(CurrentItemChanged(QTreeWidgetItem*)));
ui_->list->setCurrentItem(pages_[Page_Behaviour].item_);
Expand Down

0 comments on commit 046c221

Please sign in to comment.