summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qstroker_p.h
diff options
context:
space:
mode:
authorgunnar <gunnar@trolltech.com>2009-10-09 17:39:17 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-10-13 11:17:17 (GMT)
commitc4bb0bd645e25bb68e9ac29f0dcc53566b148be9 (patch)
treeb5f8cab2edbbc365d82371875d03db862f7a71f4 /src/gui/painting/qstroker_p.h
parent33ed3d0bacddce214a43be60eb6481903e753a88 (diff)
downloadQt-c4bb0bd645e25bb68e9ac29f0dcc53566b148be9.zip
Qt-c4bb0bd645e25bb68e9ac29f0dcc53566b148be9.tar.gz
Qt-c4bb0bd645e25bb68e9ac29f0dcc53566b148be9.tar.bz2
Make QStrokerOps, QStroker and QDashStroker properly modular
Diffstat (limited to 'src/gui/painting/qstroker_p.h')
-rw-r--r--src/gui/painting/qstroker_p.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/painting/qstroker_p.h b/src/gui/painting/qstroker_p.h
index d33eeb4..b78288c 100644
--- a/src/gui/painting/qstroker_p.h
+++ b/src/gui/painting/qstroker_p.h
@@ -171,7 +171,6 @@ protected:
QRectF m_clip_rect;
-private:
void *m_customData;
qStrokerMoveToHook m_moveTo;
qStrokerLineToHook m_lineTo;
@@ -258,12 +257,18 @@ public:
virtual void begin(void *data);
virtual void end();
+ inline void setStrokeWidth(qreal width) { m_stroke_width = width; }
+ inline void setMiterLimit(qreal limit) { m_miter_limit = limit; }
+
protected:
virtual void processCurrentSubpath();
QStroker *m_stroker;
QVector<qfixed> m_dashPattern;
qreal m_dashOffset;
+
+ qreal m_stroke_width;
+ qreal m_miter_limit;
};