50 QHBoxLayout *hLayout =
new QHBoxLayout;
51 hLayout->setContentsMargins(0, 0, 0, 0);
57 bool operator()(std::shared_ptr<Language const>
const & lhs,
58 std::shared_ptr<Language const>
const & rhs)
const
60 int cmp = lhs->translatedName().compare(rhs->translatedName());
62 cmp = lhs->abbrev().compare(rhs->abbrev());
68 std::set<std::shared_ptr<Language const>, Comp> languages;
70 auto const availableLanguages =
73 for (
auto const & language : *availableLanguages)
74 languages.emplace(language);
77 for (
auto const & l : languages) {
80 auto const & k = l->translatedName().isEmpty()
82 : l->translatedName();
94 | QFontDialog::DontUseNativeDialog);
103 [
this](QFont
const & newFont) {
106 work.settings.second = newFont;
109 qOverload<int>(&QComboBox::currentIndexChanged),
110 [
this](
int const newIndex) {
111 auto const i =
static_cast<std::size_t
>(newIndex);
127 QVBoxLayout *fLayout =
new QVBoxLayout;
128 fLayout->setContentsMargins(0, 0, 0, 0);
129 fLayout->addLayout(hLayout);
136 QVBoxLayout *mainLayout =
new QVBoxLayout(
this);
void setHeaderText(QString const &headerText)
BtFontSettingsPage(CConfigurationDialog *parent=nullptr)
QGroupBox * m_fontsGroupBox
std::vector< WorkSetting > m_workSettings
void useOwnFontClicked(bool)
QComboBox * m_languageComboBox
QCheckBox * m_languageCheckBox
QFontDialog * m_fontChooser
void save() const final override