* [PATCH] kconfig: qconf: show Qt version in the About dialog
@ 2020-11-02 3:40 Masahiro Yamada
2020-11-23 5:54 ` Masahiro Yamada
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2020-11-02 3:40 UTC (permalink / raw)
To: linux-kbuild
Cc: Randy Dunlap, Mauro Carvalho Chehab, Boris Kolpackov,
Masahiro Yamada, linux-kernel
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.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
scripts/kconfig/qconf.cc | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index cbe749b44b1a..d000869b787c 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -1799,10 +1799,13 @@ void ConfigMainWindow::showIntro(void)
void ConfigMainWindow::showAbout(void)
{
static const QString str = "qconf is Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>.\n"
- "Copyright (C) 2015 Boris Barbulovski <bbarbulovski@gmail.com>.\n\n"
- "Bug reports and feature request can also be entered at http://bugzilla.kernel.org/\n";
+ "Copyright (C) 2015 Boris Barbulovski <bbarbulovski@gmail.com>.\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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] kconfig: qconf: show Qt version in the About dialog
2020-11-02 3:40 [PATCH] kconfig: qconf: show Qt version in the About dialog Masahiro Yamada
@ 2020-11-23 5:54 ` Masahiro Yamada
0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2020-11-23 5:54 UTC (permalink / raw)
To: Linux Kbuild mailing list
Cc: Randy Dunlap, Mauro Carvalho Chehab, Boris Kolpackov,
Linux Kernel Mailing List
On Mon, Nov 2, 2020 at 12:40 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> 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.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
Applied to linux-kbuild.
> scripts/kconfig/qconf.cc | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
> index cbe749b44b1a..d000869b787c 100644
> --- a/scripts/kconfig/qconf.cc
> +++ b/scripts/kconfig/qconf.cc
> @@ -1799,10 +1799,13 @@ void ConfigMainWindow::showIntro(void)
> void ConfigMainWindow::showAbout(void)
> {
> static const QString str = "qconf is Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>.\n"
> - "Copyright (C) 2015 Boris Barbulovski <bbarbulovski@gmail.com>.\n\n"
> - "Bug reports and feature request can also be entered at http://bugzilla.kernel.org/\n";
> + "Copyright (C) 2015 Boris Barbulovski <bbarbulovski@gmail.com>.\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
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-23 5:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 3:40 [PATCH] kconfig: qconf: show Qt version in the About dialog Masahiro Yamada
2020-11-23 5:54 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®