Formatting
This commit is contained in:
@@ -76,11 +76,11 @@ CollectionSettingsPage::CollectionSettingsPage(SettingsDialog *dialog, QWidget *
|
||||
setWindowIcon(IconLoader::Load("library-music"));
|
||||
ui_->add->setIcon(IconLoader::Load("document-open-folder"));
|
||||
|
||||
ui_->combobox_cache_size->addItems({"KB", "MB"});
|
||||
ui_->combobox_disk_cache_size->addItems({"KB", "MB", "GB"});
|
||||
ui_->combobox_cache_size->addItems({ "KB", "MB" });
|
||||
ui_->combobox_disk_cache_size->addItems({ "KB", "MB", "GB" });
|
||||
|
||||
ui_->combobox_iopriority->addItems({"Auto", "Realtime", "Best effort", "Idle"});
|
||||
ui_->combobox_threadpriority->addItems({"Idle", "Lowest", "Low", "Normal"});
|
||||
ui_->combobox_iopriority->addItems({ "Auto", "Realtime", "Best effort", "Idle" });
|
||||
ui_->combobox_threadpriority->addItems({ "Idle", "Lowest", "Low", "Normal" });
|
||||
|
||||
QObject::connect(ui_->add, &QPushButton::clicked, this, &CollectionSettingsPage::Add);
|
||||
QObject::connect(ui_->remove, &QPushButton::clicked, this, &CollectionSettingsPage::Remove);
|
||||
|
||||
@@ -71,7 +71,7 @@ class ContextSettingsPage : public SettingsPage {
|
||||
|
||||
private:
|
||||
Ui_ContextSettingsPage *ui_;
|
||||
QCheckBox *checkboxes_[ContextSettingsOrder::NELEMS]{};
|
||||
QCheckBox *checkboxes_[ContextSettingsOrder::NELEMS] {};
|
||||
};
|
||||
|
||||
#endif // CONTEXTSETTINGSPAGE_H
|
||||
|
||||
@@ -186,7 +186,7 @@ void GlobalShortcutsSettingsPage::Load() {
|
||||
ui_->checkbox_mate->setChecked(s.value("use_mate", true).toBool());
|
||||
}
|
||||
|
||||
#endif // defined(Q_OS_UNIX) && !defined(Q_OS_MACOS) && defined(HAVE_DBUS)
|
||||
#endif // defined(Q_OS_UNIX) && !defined(Q_OS_MACOS) && defined(HAVE_DBUS)
|
||||
|
||||
#ifdef HAVE_X11_GLOBALSHORTCUTS
|
||||
if (ui_->widget_x11->isVisibleTo(this)) {
|
||||
|
||||
@@ -185,8 +185,8 @@ void NotificationsSettingsPage::Load() {
|
||||
break;
|
||||
}
|
||||
ui_->notifications_duration->setValue(s.value("Timeout", 5000).toInt() / 1000);
|
||||
ui_->notifications_volume->setChecked( s.value("ShowOnVolumeChange", false).toBool());
|
||||
ui_->notifications_play_mode->setChecked( s.value("ShowOnPlayModeChange", true).toBool());
|
||||
ui_->notifications_volume->setChecked(s.value("ShowOnVolumeChange", false).toBool());
|
||||
ui_->notifications_play_mode->setChecked(s.value("ShowOnPlayModeChange", true).toBool());
|
||||
ui_->notifications_pause->setChecked(s.value("ShowOnPausePlayback", true).toBool());
|
||||
ui_->notifications_resume->setChecked(s.value("ShowOnResumePlayback", false).toBool());
|
||||
ui_->notifications_art->setChecked(s.value("ShowArt", true).toBool());
|
||||
|
||||
@@ -85,7 +85,7 @@ void SubsonicSettingsPage::Load() {
|
||||
ui_->checkbox_server_scrobbling->setChecked(s.value("serversidescrobbling", false).toBool());
|
||||
|
||||
AuthMethod auth_method = static_cast<AuthMethod>(s.value("authmethod", AuthMethod_MD5).toInt());
|
||||
switch(auth_method) {
|
||||
switch (auth_method) {
|
||||
case AuthMethod_Hex:
|
||||
ui_->auth_method_hex->setChecked(true);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user