From c402d35df807096b199c9f1adfcad4dfabb70697 Mon Sep 17 00:00:00 2001 From: Olli Werwolff Date: Wed, 17 Aug 2011 09:59:08 +0200 Subject: Readded (and fixed) WindowsXP and -Vista styles There are still issues in WindowsVista style and qwizard_win's icon will not be shown but these will be fixed in upcoming commits. Change-Id: I22705694f07bea7461333b053804a09bab661706 Reviewed-on: http://codereview.qt.nokia.com/3073 Reviewed-by: Qt Sanity Bot Reviewed-by: Friedemann Kleint --- src/widgets/kernel/qapplication_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/kernel/qapplication_p.h') diff --git a/src/widgets/kernel/qapplication_p.h b/src/widgets/kernel/qapplication_p.h index c4a9a15064..097e0e521a 100644 --- a/src/widgets/kernel/qapplication_p.h +++ b/src/widgets/kernel/qapplication_p.h @@ -518,7 +518,7 @@ public: #ifdef Q_OS_WIN static HWND getHWNDForWidget(QWidget *widget) { - QWindow *window = qobject_cast(widget); + QWindow *window = widget->windowHandle(); return static_cast ("handle", QGuiApplication::platformNativeInterface()->nativeResourceForWindow("handle", window)); } #endif -- cgit v1.2.3