summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainterpath.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-03-27 13:58:14 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-03-27 14:27:11 (GMT)
commite48709416ad314f30d8ea35fc386cb177bb4b32d (patch)
tree8a90ad831055f409224c0c10d3a1fc55f7411bab /src/gui/painting/qpainterpath.h
parent95d189ee0df74497d70449f3967a38c67f5860ae (diff)
downloadQt-e48709416ad314f30d8ea35fc386cb177bb4b32d.zip
Qt-e48709416ad314f30d8ea35fc386cb177bb4b32d.tar.gz
Qt-e48709416ad314f30d8ea35fc386cb177bb4b32d.tar.bz2
Fix very slow stroking of paths in X11 paint engine.
Use QStroker::setRect() to avoid dashing parts of the path that are outside the device rect. Task-number: 246573 Reviewed-by: Trond
Diffstat (limited to 'src/gui/painting/qpainterpath.h')
-rw-r--r--src/gui/painting/qpainterpath.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qpainterpath.h b/src/gui/painting/qpainterpath.h
index 88fb19d..6cd2af8 100644
--- a/src/gui/painting/qpainterpath.h
+++ b/src/gui/painting/qpainterpath.h
@@ -277,6 +277,8 @@ public:
QPainterPath createStroke(const QPainterPath &path) const;
private:
+ friend class QX11PaintEngine;
+
QPainterPathStrokerPrivate *d_ptr;
};