Fix compilation with MinGW-w64
authorJonathan Liu <net147@gmail.com>
Wed, 17 Oct 2012 12:47:20 +0000 (23:47 +1100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 17 Oct 2012 19:21:09 +0000 (21:21 +0200)
Change-Id: I0c9e6adc54ccce34e0f81af048f2a51a4ac051b4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/plugins/platforms/windows/qtwindows_additional.h
src/plugins/platforms/windows/qwindowstheme.cpp
src/plugins/platforms/windows/qwindowswindow.cpp

index 3566367..a35a513 100644 (file)
@@ -83,7 +83,7 @@
 #define CHILDID_SELF 0
 #define WM_GETOBJECT 0x003D
 
-#ifndef SIID_SHIELD // Shell structures for icons.
+#ifndef SHGFI_ADDOVERLAYS // Shell structures for icons.
 typedef struct _SHSTOCKICONINFO
 {
     DWORD cbSize;
index 748ba09..d9de911 100644 (file)
@@ -587,7 +587,7 @@ public:
 
     T operator * () const
     {
-        return reinterpret_cast<T>(this);
+        return T(qintptr(this));
     }
 
     void operator delete (void *) {}
index fc35666..99b8922 100644 (file)
@@ -708,8 +708,8 @@ QWindowsWindow::QWindowsWindow(QWindow *aWindow, const WindowData &data) :
 #ifdef Q_OS_WINCE
     m_previouslyHidden(false),
 #endif
-    m_iconBig(0),
-    m_iconSmall(0)
+    m_iconSmall(0),
+    m_iconBig(0)
 {
     if (aWindow->surfaceType() == QWindow::OpenGLSurface)
         setFlag(OpenGLSurface);