summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-07-10 16:00:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-11 08:34:27 +0200
commit09986f6e5689f31fca4d4e8b8ce2e3a43369ce9f (patch)
treeaf84985ed5e86431110c041d6e9e932ee179adfa
parent2a6a3f0b6b6b1317a9fb2fd55202e4dbadbc3795 (diff)
downloadqtactiveqt-09986f6e5689f31fca4d4e8b8ce2e3a43369ce9f.tar.gz
Fix call to deprecated method QPixmap::grabWidget().
Change-Id: I3bf8f22065b40b41f5914787eb8204212a191412 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com> Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
-rw-r--r--src/activeqt/control/qaxserverbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activeqt/control/qaxserverbase.cpp b/src/activeqt/control/qaxserverbase.cpp
index f39c609..00402dc 100644
--- a/src/activeqt/control/qaxserverbase.cpp
+++ b/src/activeqt/control/qaxserverbase.cpp
@@ -3100,7 +3100,7 @@ HRESULT WINAPI QAxServerBase::Draw(DWORD dwAspect, LONG /* lindex */, void * /*
if (!bMetaFile)
::LPtoDP(hicTargetDev, (LPPOINT)&rc, 2);
- QPixmap pm = QPixmap::grabWidget(qt.widget);
+ const QPixmap pm = qt.widget->grab();
HBITMAP hbm = qaxPixmapToWinHBITMAP(pm);
HDC hdc = CreateCompatibleDC(0);
SelectObject(hdc, hbm);