Change internet to streaming in settings and change order of settings

This commit is contained in:
Jonas Kvinge
2018-11-28 17:53:37 +01:00
parent 29a39b4e7f
commit 046c221bc6

View File

@@ -128,8 +128,13 @@ SettingsDialog::SettingsDialog(Application *app, QWidget *parent)
AddPage(Page_Transcoding, new TranscoderSettingsPage(this), general); AddPage(Page_Transcoding, new TranscoderSettingsPage(this), general);
#endif #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) #if defined(HAVE_STREAM_TIDAL) || defined(HAVE_STREAM_DEEZER)
QTreeWidgetItem *internet = AddCategory(tr("Internet")); QTreeWidgetItem *internet = AddCategory(tr("Streaming"));
#endif #endif
#ifdef HAVE_STREAM_TIDAL #ifdef HAVE_STREAM_TIDAL
AddPage(Page_Tidal, new TidalSettingsPage(this), internet); AddPage(Page_Tidal, new TidalSettingsPage(this), internet);
@@ -138,12 +143,6 @@ SettingsDialog::SettingsDialog(Application *app, QWidget *parent)
AddPage(Page_Deezer, new DeezerSettingsPage(this), internet); AddPage(Page_Deezer, new DeezerSettingsPage(this), internet);
#endif #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 // List box
connect(ui_->list, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), SLOT(CurrentItemChanged(QTreeWidgetItem*))); connect(ui_->list, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), SLOT(CurrentItemChanged(QTreeWidgetItem*)));
ui_->list->setCurrentItem(pages_[Page_Behaviour].item_); ui_->list->setCurrentItem(pages_[Page_Behaviour].item_);