summaryrefslogtreecommitdiffstats
path: root/examples/widgets
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-11 15:24:17 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-17 13:26:50 +0200
commit861c4d854879b4e0358ad2f02d22753c37d57006 (patch)
treeef7584d00ca853682656de1b496af963430fb3f0 /examples/widgets
parente8b1e7e3192c258c21f01b85d52b698fe43c73e0 (diff)
Deprecate implicit QPixmap conversion to QBitmap
It is lossy, so should be requested explicitly, using a dedicated fromPixmap factory function. Deprecate the constructor and assignment operator, and make the constructor explicit. [ChangeLog][QtGui][QBitmap] Implicitly constructing and assigning to a QBitmap from a QPixmap has been deprecated, and the respective constructor has been made explicit. Use the fromPixmap factory function instead. Change-Id: I68ce85b26c901415137b664a1db687021d48bae0 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples/widgets')
-rw-r--r--examples/widgets/mainwindows/mainwindow/colorswatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/mainwindows/mainwindow/colorswatch.cpp b/examples/widgets/mainwindows/mainwindow/colorswatch.cpp
index 77e59d764e..cb568a7a5a 100644
--- a/examples/widgets/mainwindows/mainwindow/colorswatch.cpp
+++ b/examples/widgets/mainwindows/mainwindow/colorswatch.cpp
@@ -680,7 +680,7 @@ void BlueTitleBar::updateMask()
Q_ASSERT(dw);
QRect rect = dw->rect();
- QPixmap bitmap(dw->size());
+ QBitmap bitmap(dw->size());
{
QPainter painter(&bitmap);