summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-05 14:17:15 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-11-05 14:18:12 (GMT)
commit089056a8ae16c740616dc2b443694af7ac1853f0 (patch)
tree3cc5418363a56bc7f939799638e27e96177b4882 /src/gui
parent86388f7a5224da867ace47a41ed93982dfed7cfc (diff)
downloadQt-089056a8ae16c740616dc2b443694af7ac1853f0.zip
Qt-089056a8ae16c740616dc2b443694af7ac1853f0.tar.gz
Qt-089056a8ae16c740616dc2b443694af7ac1853f0.tar.bz2
Set strokes as non-convex by default.
Reviewed-by: Samuel
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qpaintengineex.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/painting/qpaintengineex.cpp b/src/gui/painting/qpaintengineex.cpp
index 9e21182..1fb8aab 100644
--- a/src/gui/painting/qpaintengineex.cpp
+++ b/src/gui/painting/qpaintengineex.cpp
@@ -431,6 +431,10 @@ void QPaintEngineEx::stroke(const QVectorPath &path, const QPen &pen)
// Some engines might decide to optimize for the non-shape hint later on...
uint flags = QVectorPath::WindingFill;
+
+ if (path.elementCount() > 2)
+ flags |= QVectorPath::NonConvexShapeMask;
+
if (d->stroker.capStyle() == Qt::RoundCap || d->stroker.joinStyle() == Qt::RoundJoin)
flags |= QVectorPath::CurvedShapeMask;