[LyX/master] Add Qt platform name in About dialog

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Mar 1 18:19:52 UTC 2021


Le 01/03/2021 à 19:12, Jean-Marc Lasgouttes a écrit :
> commit 234886f6eb438b68f72f46ed2904fd408741f777
> Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
> Date:   Mon Mar 1 19:15:49 2021 +0100
> 
>      Add Qt platform name in About dialog

Riki, assuming that the wording in the About dialog is acceptable, this 
is candidate for branch too. This is helpful in particular when using 
wayland vs X11.

JMarc

> ---
>   src/frontends/qt/GuiAbout.cpp |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/frontends/qt/GuiAbout.cpp b/src/frontends/qt/GuiAbout.cpp
> index b4b599f..b066106 100644
> --- a/src/frontends/qt/GuiAbout.cpp
> +++ b/src/frontends/qt/GuiAbout.cpp
> @@ -275,7 +275,7 @@ static QString version(bool const plain = false)
>   		out << '\n';
>   	else
>   		out << "</span></p><p>";
> -	out << toqstr(bformat(_("Qt Version (run-time): %1$s"), from_ascii(qVersion())));
> +	out << toqstr(bformat(_("Qt Version (run-time): %1$s on platform %2$s"), from_ascii(qVersion()), qstring_to_ucs4(guiApp->platformName())));
>   	if (plain)
>   		out << '\n';
>   	else
> 



More information about the lyx-devel mailing list