summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainter.cpp
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2009-11-03 11:15:53 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2009-11-03 11:17:24 (GMT)
commit68be6457f6732437b485812ab2db11c147a24b51 (patch)
tree62ff5c58fd075ae9c09cbf178dd5950fdb293c5b /src/gui/painting/qpainter.cpp
parent1fd46b4495241ed03371fb5c86965b788791b363 (diff)
downloadQt-68be6457f6732437b485812ab2db11c147a24b51.zip
Qt-68be6457f6732437b485812ab2db11c147a24b51.tar.gz
Qt-68be6457f6732437b485812ab2db11c147a24b51.tar.bz2
Removed usage of CompositionMode_Source in QGraphicsView for X11.
Due to the rendering model in XRender ((src IN mask) OP dest) we can't support the PorterDuff composition modes natively under X11. They just behave differently than what we've defined them to do in QPainter, and there is no apparent workaround. Task-number: QTBUG-4829 Reviewed-by: Gunnar
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-rw-r--r--src/gui/painting/qpainter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index cddad7d..8d6cad3 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -2275,8 +2275,9 @@ void QPainter::setBrushOrigin(const QPointF &p)
/*!
Sets the composition mode to the given \a mode.
- \warning You can only set the composition mode for QPainter
- objects that operates on a QImage.
+ \warning Only a QPainter operating on a QImage fully supports all
+ composition modes. The RasterOp modes are supported for X11 as
+ described in compositionMode().
\sa compositionMode()
*/