From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9423AC2D0A3 for ; Mon, 2 Nov 2020 03:40:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3FCFE2145D for ; Mon, 2 Nov 2020 03:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604288459; bh=fTtkNlyTiumC17cZUgQyWePhLB8UNTU4ajN1nZ0rnfo=; h=From:To:Cc:Subject:Date:List-ID:From; b=ayKtV9b+vi1GvSocThqTaNUiKFVX2PjN0Z5NPtQFuDjCjj8WYXXENyHnqCZ8c+TQq Qza/GE38El2Gsfaff4hB9sOvcvryKqdmLbU4VVwzma6Ak1vEghoi1XO1ZMM9EomYci pTOJkGlkMgMzZEPT8raeBKIjeDdn5ZR02AWprtP8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727726AbgKBDk6 (ORCPT ); Sun, 1 Nov 2020 22:40:58 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:56789 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727461AbgKBDk5 (ORCPT ); Sun, 1 Nov 2020 22:40:57 -0500 Received: from grover.RMN.KIBA.LAB.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-08.nifty.com with ESMTP id 0A23e2Gx007813; Mon, 2 Nov 2020 12:40:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com 0A23e2Gx007813 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1604288408; bh=gpml3RQZVXbbe4n9D9DZTs3pRYLXmv+1iU0BKpxfrxE=; h=From:To:Cc:Subject:Date:From; b=sgRY7l2ZT+Dy/mN7tUQTE57CAath2WYbskYyiUF9CTwvLp8/OzeEdHqcCqidAyVnO T9RadavsgTx5ykiOfQF+PEpuu+YMQRhsA+d0Fjg0k2MCkkmHsbmsbKNWnayERant9m 0oM4GhUd9kSdRsd8HhOCHmRnEUhQBlVHxDVarJN3cpPR9hMD8WIe4jbN6DVORyC+1E elCVt7A+4rHZe1lPInJy1JyHvxswqhJjEc3cRAE8ohH8QJuQn89t9JYgxpVBKXUSe7 sDWN1JrcKOzqvSxVSxM2DPYmZ/pGMmeXlhTEPUYImEX4pF37VnXLE1gvabwxWOuwXO QdcpCxNlJ7eKw== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Randy Dunlap , Mauro Carvalho Chehab , Boris Kolpackov , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] kconfig: qconf: show Qt version in the About dialog Date: Mon, 2 Nov 2020 12:40:01 +0900 Message-Id: <20201102034001.409945-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 .\n" - "Copyright (C) 2015 Boris Barbulovski .\n\n" - "Bug reports and feature request can also be entered at http://bugzilla.kernel.org/\n"; + "Copyright (C) 2015 Boris Barbulovski .\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