summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengineex_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-10-27 08:12:09 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-10-27 08:13:55 (GMT)
commita46adcd714ec7c71c926511a7c29a8b29dbc1035 (patch)
treecaf89057daf3c9ee4e928d2022c66f1bf600e9af /src/gui/painting/qpaintengineex_p.h
parentcdd341bd8ca9834cd631188c5efc440038ad0b20 (diff)
downloadQt-a46adcd714ec7c71c926511a7c29a8b29dbc1035.zip
Qt-a46adcd714ec7c71c926511a7c29a8b29dbc1035.tar.gz
Qt-a46adcd714ec7c71c926511a7c29a8b29dbc1035.tar.bz2
Reworked QVectorPath API to allow for caching and convex curved shapes
Diffstat (limited to 'src/gui/painting/qpaintengineex_p.h')
-rw-r--r--src/gui/painting/qpaintengineex_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/painting/qpaintengineex_p.h b/src/gui/painting/qpaintengineex_p.h
index 3ec9bd6..02d77f4 100644
--- a/src/gui/painting/qpaintengineex_p.h
+++ b/src/gui/painting/qpaintengineex_p.h
@@ -250,9 +250,9 @@ public:
inline uint QVectorPath::polygonFlags(QPaintEngine::PolygonDrawMode mode) {
switch (mode) {
case QPaintEngine::ConvexMode: return ConvexPolygonHint | ImplicitClose;
- case QPaintEngine::OddEvenMode: return NonCurvedShapeHint | OddEvenFill | ImplicitClose;
- case QPaintEngine::WindingMode: return NonCurvedShapeHint | WindingFill | ImplicitClose;
- case QPaintEngine::PolylineMode: return NonCurvedShapeHint;
+ case QPaintEngine::OddEvenMode: return PolygonHint | OddEvenFill | ImplicitClose;
+ case QPaintEngine::WindingMode: return PolygonHint | WindingFill | ImplicitClose;
+ case QPaintEngine::PolylineMode: return PolygonHint;
default: return 0;
}
}