summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qpainter/tst_qpainter.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jkobus@trolltech.com>2009-04-17 06:59:50 (GMT)
committerJarek Kobus <jkobus@trolltech.com>2009-04-17 06:59:50 (GMT)
commitfa58c0e9afecc3807bd76babbd5da3918afcdd3d (patch)
tree4895431d492b093b1e2ee29032fa82999a8ed09b /tests/benchmarks/qpainter/tst_qpainter.cpp
parent04c01e15739d926ef653293ef1e89132085d7acd (diff)
parent8eb08c8c294f00763961e86cc3370b0ef78c8976 (diff)
downloadQt-fa58c0e9afecc3807bd76babbd5da3918afcdd3d.zip
Qt-fa58c0e9afecc3807bd76babbd5da3918afcdd3d.tar.gz
Qt-fa58c0e9afecc3807bd76babbd5da3918afcdd3d.tar.bz2
Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5
Diffstat (limited to 'tests/benchmarks/qpainter/tst_qpainter.cpp')
-rw-r--r--tests/benchmarks/qpainter/tst_qpainter.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/benchmarks/qpainter/tst_qpainter.cpp b/tests/benchmarks/qpainter/tst_qpainter.cpp
index af2c412..60c099b 100644
--- a/tests/benchmarks/qpainter/tst_qpainter.cpp
+++ b/tests/benchmarks/qpainter/tst_qpainter.cpp
@@ -700,11 +700,7 @@ void tst_QPainter::compositionModes_data()
QTest::addColumn<QSize>("size");
QTest::addColumn<QColor>("color");
-#if QT_VERSION >= 0x040500
const int n = QPainter::RasterOp_SourceAndNotDestination;
-#else
- const int n = QPainter::CompositionMode_Exclusion;
-#endif
for (int i = 0; i <= n; ++i) {
QString title("%1:%2");
QTest::newRow(qPrintable(title.arg(i).arg("10x10:opaque")))
@@ -732,9 +728,7 @@ void tst_QPainter::compositionModes()
src.fill(color);
QPixmap dest(size);
-#if QT_VERSION >= 0x040500
if (mode < QPainter::RasterOp_SourceOrDestination)
-#endif
color.setAlpha(127); // porter-duff needs an alpha channel
dest.fill(color);