Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932203AbZDSNni (ORCPT ); Sun, 19 Apr 2009 09:43:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760552AbZDSNla (ORCPT ); Sun, 19 Apr 2009 09:41:30 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:32818 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758768AbZDSNlW (ORCPT ); Sun, 19 Apr 2009 09:41:22 -0400 From: Markus Heidelberg To: Roman Zippel Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Heidelberg Subject: [PATCH 08/10] kconfig qconf: fix the type of the desktop widget Date: Sun, 19 Apr 2009 15:41:25 +0200 Message-Id: <1240148487-27584-9-git-send-email-markus.heidelberg@web.de> X-Mailer: git-send-email 1.6.3.rc1.24.g467d50 In-Reply-To: <1240148487-27584-1-git-send-email-markus.heidelberg@web.de> References: <1240148487-27584-1-git-send-email-markus.heidelberg@web.de> X-Provags-ID: V01U2FsdGVkX194A7It1m8Sh5BZ2X7hYXGfTFk51A1rwPdjm0QJ gzeA55ifeV8nEhnQ8f/cMvCsoB9nMliNbOCg8ZH5us2VNWTiR8 J7UV5BNsT6S+e6MBx12g== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1464 Lines: 43 QApplication::desktop() returns a pointer to QDesktopWidget, not to QWidget. Fixes the following compiler error after a quick conversion with 'qt3to4', which occured with g++ 3.4.6 and 4.1.2, but not anymore with 4.3.2. scripts/kconfig/qconf.cc: In constructor 'ConfigMainWindow::ConfigMainWindow()': scripts/kconfig/qconf.cc:1289: error: cannot convert 'QDesktopWidget*' to 'QWidget*' in initialization Signed-off-by: Markus Heidelberg --- scripts/kconfig/qconf.cc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index afae613..19811fc 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -1275,7 +1276,7 @@ ConfigMainWindow::ConfigMainWindow(void) int x, y, width, height; char title[256]; - QWidget *d = configApp->desktop(); + QDesktopWidget *d = configApp->desktop(); snprintf(title, sizeof(title), _("Linux Kernel v%s Configuration"), getenv("KERNELVERSION")); setCaption(title); -- 1.6.3.rc1.24.g467d50 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/