summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/image/qimage
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-16 17:42:00 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-29 06:20:07 +0200
commit0fda43cf33cc7715f16d8764c4d96c6f88238712 (patch)
treec693c9ce99f1f02f8ec5de204cfe93bf1517b105 /tests/auto/gui/image/qimage
parent0303d8ddfa968e0c5a9ac08a12836ea3f34d4088 (diff)
Remove deprecated members from QtGui/image classes
Cleaning up those that are trivial to remove because they have direct replacements. Change-Id: I4f5c25884a01474fa2db8b369f0d883bd21edd5b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/gui/image/qimage')
-rw-r--r--tests/auto/gui/image/qimage/tst_qimage.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/auto/gui/image/qimage/tst_qimage.cpp b/tests/auto/gui/image/qimage/tst_qimage.cpp
index fe998c7d92..9455e2b6e8 100644
--- a/tests/auto/gui/image/qimage/tst_qimage.cpp
+++ b/tests/auto/gui/image/qimage/tst_qimage.cpp
@@ -70,8 +70,6 @@ private slots:
void setAlphaChannel_data();
void setAlphaChannel();
- void alphaChannel();
-
void convertToFormat_data();
void convertToFormat();
void convertToFormatWithColorTable();
@@ -544,32 +542,6 @@ void tst_QImage::setAlphaChannel()
}
}
QVERIFY(allPixelsOK);
-
- QImage outAlpha = image.alphaChannel();
- QCOMPARE(outAlpha.size(), image.size());
-
- bool allAlphaOk = true;
- for (int y=0; y<height; ++y) {
- for (int x=0; x<width; ++x) {
- allAlphaOk &= outAlpha.pixelIndex(x, y) == alpha;
- }
- }
- QVERIFY(allAlphaOk);
-
-}
-
-void tst_QImage::alphaChannel()
-{
- QImage img(10, 10, QImage::Format_Mono);
- img.setColor(0, Qt::transparent);
- img.setColor(1, Qt::black);
- img.fill(0);
-
- QPainter p(&img);
- p.fillRect(2, 2, 6, 6, Qt::black);
- p.end();
-
- QCOMPARE(img.alphaChannel(), img.convertToFormat(QImage::Format_ARGB32).alphaChannel());
}
void tst_QImage::convertToFormat_data()