On Tue, Dec 06, 2022 at 11:12:37PM +0100, Stephan Witt wrote:
> commit a66ee4109ee84a4a501dbaa29580cdefe1aadd36
> Author: Stephan Witt <sw...@lyx.org>
> Date:   Wed Dec 7 00:08:11 2022 +0100
> 
>     Add OS version info to About box.
> ---
>  src/frontends/qt/GuiAbout.cpp |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/src/frontends/qt/GuiAbout.cpp b/src/frontends/qt/GuiAbout.cpp
> index d4173fa..16f8be4 100644
> --- a/src/frontends/qt/GuiAbout.cpp
> +++ b/src/frontends/qt/GuiAbout.cpp
> @@ -294,6 +294,12 @@ static QString version(bool const plain = false)
>               out << '\n';
>       else
>               out << "</p><p>";
> +     out << toqstr(bformat(_("OS Version (run-time): %1$s"),
> +             qstring_to_ucs4(QSysInfo::prettyProductName())));

This function was introduced in Qt 5.4. Until we agree on specific minor version
I'd put it within ifdefs...

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to