From f6b26af2c74e54d42773e683aacab34bc831cb67 Mon Sep 17 00:00:00 2001
From: Antonio Rojas
Date: Sun, 19 Jun 2022 16:54:42 +0000
Subject: [PATCH] Show the actual QtWebEngine version in about dialog
It was claiming to show the QtWebEngine version but really showing the QtCore one.
Those two are different nowadays in most distros, since Qt 5.15 releases are commercial only for a year (except for WebEngine)
---
src/lib/other/aboutdialog.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lib/other/aboutdialog.cpp b/src/lib/other/aboutdialog.cpp
index 94cfcd2a1..6a4007ad2 100644
--- a/src/lib/other/aboutdialog.cpp
+++ b/src/lib/other/aboutdialog.cpp
@@ -25,6 +25,7 @@
#include
#include
+#include
AboutDialog::AboutDialog(QWidget* parent)
: QDialog(parent)
@@ -54,7 +55,7 @@ void AboutDialog::showAbout()
Qz::VERSION
#endif
);
- aboutHtml += tr("QtWebEngine version %1
").arg(qVersion());
+ aboutHtml += tr("QtWebEngine version %1").arg(QStringLiteral(QTWEBENGINECORE_VERSION_STR));
aboutHtml += QString("© %1 %2
").arg(Qz::COPYRIGHT, Qz::AUTHOR);
aboutHtml += QString("%1
").arg(Qz::WWWADDRESS);
aboutHtml += "" + mApp->userAgentManager()->defaultUserAgent() + "
";