Mercurial > minori
comparison src/gui/dialog/settings/application.cpp @ 36:2743011a6042
*: mass update
formatted all source files, converted ALL instances of setStyleSheet() to
palettes and fonts (stylesheets suck), and I changed the clang-format file because
it wasn't working on my laptop for some reason.
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 21 Sep 2023 15:17:47 -0400 |
parents | cde8f67a7c7d |
children | 4c6dd5999b39 |
comparison
equal
deleted
inserted
replaced
35:329b7921a6be | 36:2743011a6042 |
---|---|
65 connect(hl_above_anime_box, &QCheckBox::stateChanged, this, | 65 connect(hl_above_anime_box, &QCheckBox::stateChanged, this, |
66 [this](int state) { highlight_anime_if_available = (state == Qt::Unchecked) ? false : true; }); | 66 [this](int state) { highlight_anime_if_available = (state == Qt::Unchecked) ? false : true; }); |
67 hl_anime_box->setCheckState(highlight_anime_if_available ? Qt::Checked : Qt::Unchecked); | 67 hl_anime_box->setCheckState(highlight_anime_if_available ? Qt::Checked : Qt::Unchecked); |
68 hl_above_anime_box->setCheckState(highlighted_anime_above_others ? Qt::Checked : Qt::Unchecked); | 68 hl_above_anime_box->setCheckState(highlighted_anime_above_others ? Qt::Checked : Qt::Unchecked); |
69 hl_above_anime_box->setEnabled(hl_anime_box->checkState() != Qt::Unchecked); | 69 hl_above_anime_box->setEnabled(hl_anime_box->checkState() != Qt::Unchecked); |
70 hl_above_anime_box->setStyleSheet("margin-left: 10px;"); | 70 hl_above_anime_box->setContentsMargins(10, 0, 0, 0); |
71 | 71 |
72 /* Appearance */ | 72 /* Appearance */ |
73 QVBoxLayout* appearance_layout = new QVBoxLayout; | 73 QVBoxLayout* appearance_layout = new QVBoxLayout; |
74 appearance_layout->addWidget(lang_combo_box_label); | 74 appearance_layout->addWidget(lang_combo_box_label); |
75 appearance_layout->addWidget(lang_combo_box); | 75 appearance_layout->addWidget(lang_combo_box); |