diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-03-27 13:58:14 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-03-27 14:27:11 (GMT) |
commit | e48709416ad314f30d8ea35fc386cb177bb4b32d (patch) | |
tree | 8a90ad831055f409224c0c10d3a1fc55f7411bab /src/gui/painting/qpainterpath_p.h | |
parent | 95d189ee0df74497d70449f3967a38c67f5860ae (diff) | |
download | Qt-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_p.h')
-rw-r--r-- | src/gui/painting/qpainterpath_p.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/painting/qpainterpath_p.h b/src/gui/painting/qpainterpath_p.h index 93f9704..29c48df 100644 --- a/src/gui/painting/qpainterpath_p.h +++ b/src/gui/painting/qpainterpath_p.h @@ -61,9 +61,20 @@ #include <qdebug.h> #include <private/qvectorpath_p.h> +#include <private/qstroker_p.h> QT_BEGIN_NAMESPACE +class QPainterPathStrokerPrivate +{ +public: + QPainterPathStrokerPrivate(); + + QStroker stroker; + QVector<qfixed> dashPattern; + qreal dashOffset; +}; + class QPolygonF; class QVectorPathConverter; |