Skip to contentSkip to conversation

kconfig: qconf: show Qt version in the About dialog

PATCH In review Masahiro Yamada 1 participant 2 messages Nov 2, 2020 – Nov 23, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kconfig: qconf: show Qt version in the About dialog

You can get the Qt version by running "pkg-config --modversion Qt5Core" or something, but this might be useful to get the runtime Qt version more easily. Go to the menu "Help" -> "About", then you can see it.

---

 scripts/kconfig/qconf.cc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
scripts/kconfig/qconf.cc +6 -3
index cbe749b44b1a..d000869b787c 100644
@@ -1799,10 +1799,13 @@ void ConfigMainWindow::showIntro(void)
 void ConfigMainWindow::showAbout(void)
 {
 	static const QString str = "qconf is Copyright (C) 2002 Roman Zippel <[email protected]>.\n"
-		"Copyright (C) 2015 Boris Barbulovski <[email protected]>.\n\n"
-		"Bug reports and feature request can also be entered at http://bugzilla.kernel.org/\n";
+		"Copyright (C) 2015 Boris Barbulovski <[email protected]>.\n"
+		"\n"
+		"Bug reports and feature request can also be entered at http://bugzilla.kernel.org/\n"
+		"\n"
+		"Qt Version: ";
 
-	QMessageBox::information(this, "qconf", str);
+	QMessageBox::information(this, "qconf", str + qVersion());
 }
 
 void ConfigMainWindow::saveSettings(void)
Signature · 1 line
2.25.1
#1 lore raw
Quoted 7 lines · Masahiro Yamada

You can get the Qt version by running "pkg-config --modversion Qt5Core" or something, but this might be useful to get the runtime Qt version more easily. Go to the menu "Help" -> "About", then you can see it.

---

Applied to linux-kbuild.

Quoted 27 lines
 scripts/kconfig/qconf.cc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
scripts/kconfig/qconf.cc +6 -4
index cbe749b44b1a..d000869b787c 100644
@@ -1799,10 +1799,13 @@ void ConfigMainWindow::showIntro(void)
 void ConfigMainWindow::showAbout(void)
 {
        static const QString str = "qconf is Copyright (C) 2002 Roman Zippel <[email protected]>.\n"
-               "Copyright (C) 2015 Boris Barbulovski <[email protected]>.\n\n"
-               "Bug reports and feature request can also be entered at http://bugzilla.kernel.org/\n";
+               "Copyright (C) 2015 Boris Barbulovski <[email protected]>.\n"
+               "\n"
+               "Bug reports and feature request can also be entered at http://bugzilla.kernel.org/\n"
+               "\n"
+               "Qt Version: ";
 
-       QMessageBox::information(this, "qconf", str);
+       QMessageBox::information(this, "qconf", str + qVersion());
 }
 
 void ConfigMainWindow::saveSettings(void)
--

2.25.1

Signature · 2 lines
Best Regards
Masahiro Yamada