Mercurial > minori
diff src/gui/dialog/settings/application.cpp @ 15:cde8f67a7c7d
*: update, megacommit :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 19 Sep 2023 22:36:08 -0400 |
parents | 4b198a111713 |
children | 2743011a6042 |
line wrap: on
line diff
--- a/src/gui/dialog/settings/application.cpp Tue Sep 19 16:33:07 2023 -0400 +++ b/src/gui/dialog/settings/application.cpp Tue Sep 19 22:36:08 2023 -0400 @@ -52,18 +52,18 @@ lang_combo_box->addItem(tr("Native")); lang_combo_box->addItem(tr("English")); connect(lang_combo_box, QOverload<int>::of(&QComboBox::currentIndexChanged), this, - [this](int index) { language = static_cast<Anime::TitleLanguage>(index); }); + [this](int index) { language = static_cast<Anime::TitleLanguage>(index); }); lang_combo_box->setCurrentIndex(static_cast<int>(language)); QCheckBox* hl_anime_box = - new QCheckBox(tr("Highlight anime if next episode is available in library folders"), appearance_group_box); + new QCheckBox(tr("Highlight anime if next episode is available in library folders"), appearance_group_box); QCheckBox* hl_above_anime_box = new QCheckBox(tr("Display highlighted anime above others"), appearance_group_box); connect(hl_anime_box, &QCheckBox::stateChanged, this, [this, hl_above_anime_box](int state) { highlight_anime_if_available = (state == Qt::Unchecked) ? false : true; hl_above_anime_box->setEnabled(state); }); connect(hl_above_anime_box, &QCheckBox::stateChanged, this, - [this](int state) { highlight_anime_if_available = (state == Qt::Unchecked) ? false : true; }); + [this](int state) { highlight_anime_if_available = (state == Qt::Unchecked) ? false : true; }); hl_anime_box->setCheckState(highlight_anime_if_available ? Qt::Checked : Qt::Unchecked); hl_above_anime_box->setCheckState(highlighted_anime_above_others ? Qt::Checked : Qt::Unchecked); hl_above_anime_box->setEnabled(hl_anime_box->checkState() != Qt::Unchecked); @@ -81,15 +81,15 @@ progress_group_box->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum); QCheckBox* progress_display_aired_episodes = - new QCheckBox(tr("Display aired episodes (estimated)"), progress_group_box); + new QCheckBox(tr("Display aired episodes (estimated)"), progress_group_box); connect(progress_display_aired_episodes, &QCheckBox::stateChanged, this, - [this](int state) { display_aired_episodes = (state == Qt::Unchecked) ? false : true; }); + [this](int state) { display_aired_episodes = (state == Qt::Unchecked) ? false : true; }); progress_display_aired_episodes->setCheckState(display_aired_episodes ? Qt::Checked : Qt::Unchecked); QCheckBox* progress_display_available_episodes = - new QCheckBox(tr("Display available episodes in library folders"), progress_group_box); + new QCheckBox(tr("Display available episodes in library folders"), progress_group_box); connect(progress_display_available_episodes, &QCheckBox::stateChanged, this, - [this](int state) { display_available_episodes = (state == Qt::Unchecked) ? false : true; }); + [this](int state) { display_available_episodes = (state == Qt::Unchecked) ? false : true; }); progress_display_available_episodes->setCheckState(display_available_episodes ? Qt::Checked : Qt::Unchecked); QVBoxLayout* progress_layout = new QVBoxLayout;