summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-02-16 15:29:16 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-02-16 14:38:46 +0000
commit5eac28ccd8bfdcad0000d053519547c8ad8991fe (patch)
tree757ccc61a49dea2b6636e107d58778e3f316a3cc
parent7244e43695a8597bb14bf97b693536ba80a3dd03 (diff)
qtwinmigrate: Fix build against Qt 5.8
qWinAppInst() has been removed from QtCore. Change-Id: Iefd249c8e454c3141e2f7e0346b830b5efe41e0a Reviewed-by: Andy Shaw <andy.shaw@qt.io>
-rw-r--r--qtwinmigrate/src/qwinhost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtwinmigrate/src/qwinhost.cpp b/qtwinmigrate/src/qwinhost.cpp
index db089ad..fc08019 100644
--- a/qtwinmigrate/src/qwinhost.cpp
+++ b/qtwinmigrate/src/qwinhost.cpp
@@ -254,7 +254,7 @@ bool QWinHost::event(QEvent *e)
switch(e->type()) {
case QEvent::Polish:
if (!hwnd) {
- hwnd = createWindow((HWND)winId(), qWinAppInst());
+ hwnd = createWindow(HWND(winId()), GetModuleHandle(0));
fixParent();
own_hwnd = hwnd != 0;
}