diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-10-26 10:12:07 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-10-27 08:28:02 (GMT) |
commit | 487ebd770e1a406270e24aec97a90adea2062c3a (patch) | |
tree | e242b1d33be1416a5b74c18f4de023c5c2d9639f /tests/auto/qgraphicseffect | |
parent | c39fac87d62ef15867dc5571d03530d7e7240aa7 (diff) | |
download | Qt-487ebd770e1a406270e24aec97a90adea2062c3a.zip Qt-487ebd770e1a406270e24aec97a90adea2062c3a.tar.gz Qt-487ebd770e1a406270e24aec97a90adea2062c3a.tar.bz2 |
Made graphics effects autotest compile.
There's no grayscale effect anymore, use colorize effect.
Reviewed-by: Gunnar Sletta
Diffstat (limited to 'tests/auto/qgraphicseffect')
-rw-r--r-- | tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp index 0201bc4..b40cf43 100644 --- a/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp +++ b/tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp @@ -379,7 +379,8 @@ void tst_QGraphicsEffect::grayscale() item->setPen(Qt::NoPen); item->setBrush(QColor(122, 193, 66)); // Qt light green - QGraphicsGrayscaleEffect *effect = new QGraphicsGrayscaleEffect; + QGraphicsColorizeEffect *effect = new QGraphicsColorizeEffect; + effect->setColor(Qt::black); item->setGraphicsEffect(effect); QPainter painter; |