commit 2441b3fa2be8f537637f40d16eb635d67bf5464d Author: Juergen Spitzmueller <sp...@lyx.org> Date: Fri Mar 28 14:46:36 2025 +0100
Move translatable strings into the radar --- src/frontends/qt/GuiPrefs.cpp | 9 ++++++++- src/frontends/qt/GuiPrefs.h | 5 ++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp index 8d5df5077b..fe534e4c45 100644 --- a/src/frontends/qt/GuiPrefs.cpp +++ b/src/frontends/qt/GuiPrefs.cpp @@ -1035,6 +1035,13 @@ PrefColors::PrefColors(GuiPreferences * form) QShortcut* sc_search = new QShortcut(QKeySequence(QKeySequence::Find), this); + header_labels_ << qt_("Light") + << qt_("Dark") + << qt_("Object/Element") + << qt_("Light") + << qt_("Dark"); + reset_label_ = qt_("Reset"); + initializeColorsTV(); initializeThemesLW(); initializeThemeMenu(); @@ -1636,7 +1643,7 @@ void PrefColors::initializeColorsTV() vertical_header->setDefaultAlignment(Qt::AlignCenter); colorsTV->verticalHeader()->hide(); - QHeaderView* horizontal_header = new QHeaderView(Qt::Horizontal); + QHeaderView * horizontal_header = new QHeaderView(Qt::Horizontal); horizontal_header->setModel(&colorsTV_model_); horizontal_header->setSectionResizeMode(QHeaderView::Fixed); horizontal_header->setSectionResizeMode(ColorNameColumn, QHeaderView::Stretch); diff --git a/src/frontends/qt/GuiPrefs.h b/src/frontends/qt/GuiPrefs.h index fab5ba8784..b0e2a984ac 100644 --- a/src/frontends/qt/GuiPrefs.h +++ b/src/frontends/qt/GuiPrefs.h @@ -322,9 +322,8 @@ private: /// ColorPair toqcolor(ColorNamePair); - QStringList const header_labels_ = - {qt_("Light"), qt_("Dark"), qt_("Object/Element"), qt_("Light"), qt_("Dark")}; - QString const reset_label_ = qt_("Reset"); + QStringList header_labels_; + QString reset_label_; int const swatch_width_ = 32; int const swatch_height_ = 18; int const swatch_hmargin_ = 2; -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs