From c42ac8173eb50f4d42e5a2f2d94d39195dad1b47 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Fri, 14 Mar 2014 06:56:59 +0000 Subject: [PATCH] Fix a probably copy/paste issue from drawImage in the drawPixmap snippet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia2b34e3ee6954342501a805f9e047cb90078e9d5 Reviewed-by: Martin Smith Reviewed-by: Topi Reiniƶ --- src/gui/doc/snippets/code/src_gui_painting_qpainter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/doc/snippets/code/src_gui_painting_qpainter.cpp b/src/gui/doc/snippets/code/src_gui_painting_qpainter.cpp index 6a012879d4..144858816b 100644 --- a/src/gui/doc/snippets/code/src_gui_painting_qpainter.cpp +++ b/src/gui/doc/snippets/code/src_gui_painting_qpainter.cpp @@ -207,7 +207,7 @@ QRectF source(0.0, 0.0, 70.0, 40.0); QPixmap pixmap(":myPixmap.png"); QPainter(this); -painter.drawPixmap(target, image, source); +painter.drawPixmap(target, pixmap, source); //! [16]