fix tst_QWidget::getSetCheck on Windows

Change-Id: Ie11a7576f8e618e2fedb31bd8071abb44b9f9f57
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Joerg Bornemann 2012-06-19 18:10:28 +02:00 committed by Qt by Nokia
parent f74b26b6aa
commit 5f9d386727

View File

@ -535,7 +535,7 @@ void tst_QWidget::getSetCheck()
delete var1;
#if defined (Q_OS_WIN) && !defined(Q_OS_WINCE)
obj1.setWindowFlags(Qt::FramelessWindowHint | Qt::WindowSystemMenuHint);
const HWND handle = winHandleOf(&obj1);
const HWND handle = reinterpret_cast<HWND>(obj1.winId()); // explicitly create window handle
QVERIFY(GetWindowLong(handle, GWL_STYLE) & WS_POPUP);
#endif
}