From deae5ea23a507b9560278382f89c4219d38b7245 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Thu, 8 Dec 2022 18:05:28 +0100 Subject: [PATCH] Follow-up for change a66ee4109e - guard Qt 5.4 code with version check --- src/frontends/qt/GuiAbout.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/qt/GuiAbout.cpp b/src/frontends/qt/GuiAbout.cpp index 16f8be4298..35375c969c 100644 --- a/src/frontends/qt/GuiAbout.cpp +++ b/src/frontends/qt/GuiAbout.cpp @@ -294,12 +294,14 @@ static QString version(bool const plain = false) out << '\n'; else out << "

"; +#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)) out << toqstr(bformat(_("OS Version (run-time): %1$s"), qstring_to_ucs4(QSysInfo::prettyProductName()))); if (plain) out << '\n'; else out << "

"; +#endif out << toqstr(bformat(_("Python detected: %1$s"), from_utf8(os::python()))); if (!plain) out << toqstr("

"); -- 2.39.5