summaryrefslogtreecommitdiffstats
path: root/src/gui/effects
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-02 15:06:06 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-11-02 15:06:06 (GMT)
commit243163c3f61c79146c37da0a4da4bacafa8e1321 (patch)
tree9bba6ad6003d25b39a479cd6e7838e009080cf25 /src/gui/effects
parentd4ea57ff9022305437fb371802b41120074d3467 (diff)
downloadQt-243163c3f61c79146c37da0a4da4bacafa8e1321.zip
Qt-243163c3f61c79146c37da0a4da4bacafa8e1321.tar.gz
Qt-243163c3f61c79146c37da0a4da4bacafa8e1321.tar.bz2
Fixed test, QGraphicsSourceEffect::pixmap(), caching caused failure.
Reviewed-by: Samuel
Diffstat (limited to 'src/gui/effects')
-rw-r--r--src/gui/effects/qgraphicseffect.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/effects/qgraphicseffect.cpp b/src/gui/effects/qgraphicseffect.cpp
index 3a6bab5..f24d424 100644
--- a/src/gui/effects/qgraphicseffect.cpp
+++ b/src/gui/effects/qgraphicseffect.cpp
@@ -97,6 +97,8 @@
*/
#include "qgraphicseffect_p.h"
+#include "private/qgraphicsitem_p.h"
+
#include <QtGui/qgraphicsitem.h>
#include <QtGui/qimage.h>
@@ -260,6 +262,12 @@ QPixmap QGraphicsEffectSource::pixmap(Qt::CoordinateSystem system, QPoint *offse
return ((QGraphicsPixmapItem *) item)->pixmap();
}
+ if (system == Qt::DeviceCoordinates && item
+ && !static_cast<const QGraphicsItemEffectSourcePrivate *>(d_func())->info) {
+ qWarning("QGraphicsEffectSource::pixmap: Not yet implemented, lacking device context");
+ return QPixmap();
+ }
+
QPixmap pm;
if (d->m_cachedSystem == system && d->m_cachedMode == mode)
QPixmapCache::find(d->m_cacheKey, &pm);