From b2c95e74a6ad97bdebd9d1fed8ffec065aba31f0 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 28 Feb 2024 13:06:10 +0100 Subject: [PATCH] QPixmap: fix the documenation for toHICON The functions are now on QImage, not on QtWIn. Change-Id: Ida777c7fc087bf673c5305beffb498ada115ed73 Pick-to: 6.7 6.6 6.5 6.2 Reviewed-by: Friedemann Kleint --- src/gui/image/qpixmap.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp index 8b7de7ac23d..89b8d5303bd 100644 --- a/src/gui/image/qpixmap.cpp +++ b/src/gui/image/qpixmap.cpp @@ -1280,8 +1280,9 @@ QPixmap QPixmap::transformed(const QTransform &transform, QPixmap using the fromImage(). If this is too expensive an operation, you can use QBitmap::fromImage() instead. - To convert a QPixmap to and from HICON you can use the QtWinExtras - functions QtWin::toHICON() and QtWin::fromHICON() respectively. + To convert a QPixmap to and from HICON you can use the + QImage::toHICON() and QImage::fromHICON() functions respectively + (after converting the QPixmap to a QImage, as explained above). \section1 Pixmap Transformations