[LyX/master] Add OS version info to About box.
Stephan Witt
st.witt at gmx.net
Thu Dec 8 17:09:06 UTC 2022
Am 07.12.2022 um 14:36 schrieb Pavel Sanda <sanda at lyx.org>:
>
> On Tue, Dec 06, 2022 at 11:12:37PM +0100, Stephan Witt wrote:
>> commit a66ee4109ee84a4a501dbaa29580cdefe1aadd36
>> Author: Stephan Witt <switt at 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…
I did it now. (The style of version check here is not consistent. I decided to use the more readable style.)
Stephan
More information about the lyx-devel
mailing list