diff options
author | Olli Werwolff <qt-info@nokia.com> | 2011-08-17 09:59:08 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@nokia.com> | 2011-08-17 13:30:28 +0200 |
commit | c402d35df807096b199c9f1adfcad4dfabb70697 (patch) | |
tree | 36adb85e0af509b6365527c6b8bafaa377b29484 /src/widgets/kernel | |
parent | a957a88542ada1c960b2f1b17284c7d813284fc1 (diff) |
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 <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r-- | src/widgets/kernel/qapplication_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<QWindow *>(widget); + QWindow *window = widget->windowHandle(); return static_cast<HWND> ("handle", QGuiApplication::platformNativeInterface()->nativeResourceForWindow("handle", window)); } #endif |