]> git.lyx.org Git - lyx.git/commitdiff
Add Qt platform name in About dialog
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 2 Mar 2021 07:28:47 +0000 (08:28 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 2 Mar 2021 07:30:45 +0000 (08:30 +0100)
(cherry picked from commit 234886f6eb438b68f72f46ed2904fd408741f777)

src/frontends/qt4/GuiAbout.cpp
status.23x

index 299ed0845d9dd24485baa2327315b759ec230c65..72b67e7df7046f799eeeb36676224c21ea94f43d 100644 (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;
 }
index 2b994ea9d05470208bb6103def290c8045c9afd8..06a0d577b9018ba061912308ffe1d6cf84cac3e7 100644 (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