Add Qt platform name in About dialog

(cherry picked from commit 234886f6eb)
This commit is contained in:
Jean-Marc Lasgouttes 2021-03-02 08:28:47 +01:00
parent 9a74a51791
commit 007a192fae
2 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,8 @@
#include "GuiAbout.h"
#include "GuiApplication.h"
#include "ui_AboutUi.h"
#include "qt_helpers.h"
@ -229,7 +231,7 @@ static QString version()
out << qt_("User directory: ");
out << toqstr(makeDisplayPath(package().user_support().absFileName()));
out << "\n";
out << toqstr(bformat(_("Qt Version (run-time): %1$s"), from_ascii(qVersion()))) << "\n";
out << toqstr(bformat(_("Qt Version (run-time): %1$s on platform %2$s"), from_ascii(qVersion()), qstring_to_ucs4(guiApp->platformName()))) << "\n";
out << toqstr(bformat(_("Qt Version (compile-time): %1$s"), from_ascii(QT_VERSION_STR))) << "\n";
return res;
}

View File

@ -34,6 +34,8 @@ What's new
- Other than directly inserted, now references can also be pasted as insets
into an equation, instead of simply as text (bug 11539).
- Add Qt platform name in About dialog.
* DOCUMENTATION AND LOCALIZATION