Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
QTest::addColumn<QSize>("size");
QTest::addColumn<QColor>("color");
- const int n = QPainter::RasterOp_SourceAndNotDestination;
+ const int n = QPainter::CompositionMode_Exclusion;
for (int i = 0; i <= n; ++i) {
QString title("%1:%2");
QTest::newRow(qPrintable(title.arg(i).arg("10x10:opaque")))
src.fill(color);
QPixmap dest = rasterPixmap(size);
- if (mode < QPainter::RasterOp_SourceOrDestination)
- color.setAlpha(127); // porter-duff needs an alpha channel
+ color.setAlpha(127); // porter-duff needs an alpha channel
dest.fill(color);
QPainter p(&dest);