commit adccc524d4f0f6989fdca39b7709ebfc1f75e76b Author: Pavel Sanda <sa...@lyx.org> Date: Sat Mar 1 21:10:40 2025 +0100
Try to fix compilation for old bionic. Also removing leading spaces - such centering won't work across different fonts/systems. I do not see how to make such centering though, so this layout is not particularly nice. --- src/frontends/qt/GuiPrefs.cpp | 5 +++++ src/frontends/qt/ui/PrefColorsUi.ui | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp index b7dad61105..df43a199b4 100644 --- a/src/frontends/qt/GuiPrefs.cpp +++ b/src/frontends/qt/GuiPrefs.cpp @@ -1514,6 +1514,11 @@ void PrefColors::initializeLoadThemeCO() { // initialize "load themes" dropdown menu + //move to PrefColorsUi.ui:loadThemeCO->PlaceholderText once we support at least Qt 5.15 +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) + loadThemeCO->setPlaceholderText(lyx::qt_("Load Theme", nullptr)); +#endif + const QIcon & sys_theme_icon= QIcon(toqstr(package().system_support().absFileName() + "images/oxygen/float-insert_figure.svgz")); const QIcon & usr_theme_icon= QIcon(toqstr(package().system_support().absFileName() + "images/oxygen/change-accept.svgz")); diff --git a/src/frontends/qt/ui/PrefColorsUi.ui b/src/frontends/qt/ui/PrefColorsUi.ui index 907951bc09..da2414ca99 100644 --- a/src/frontends/qt/ui/PrefColorsUi.ui +++ b/src/frontends/qt/ui/PrefColorsUi.ui @@ -472,9 +472,6 @@ <property name="toolTip"> <string>Load preset color theme</string> </property> - <property name="placeholderText"> - <string>Load Theme</string> - </property> </widget> </item> </layout> -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs