Changeset 846 for trunk/src/gui/painting/qstroker_p.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/painting/qstroker_p.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 125 125 void *data); 126 126 127 // qtransform.cpp 128 Q_GUI_EXPORT bool qt_scaleForTransform(const QTransform &transform, qreal *scale); 129 127 130 class Q_GUI_EXPORT QStrokerOps 128 131 { … … 162 165 void setClipRect(const QRectF &clip) { m_clip_rect = clip; } 163 166 167 void setCurveThresholdFromTransform(const QTransform &transform) 168 { 169 qreal scale; 170 qt_scaleForTransform(transform, &scale); 171 m_dashThreshold = scale == 0 ? qreal(0.5) : (qreal(0.5) / scale); 172 } 173 174 void setCurveThreshold(qfixed threshold) { m_curveThreshold = threshold; } 175 qfixed curveThreshold() const { return m_curveThreshold; } 176 164 177 protected: 165 178 inline void emitMoveTo(qfixed x, qfixed y); … … 171 184 172 185 QRectF m_clip_rect; 186 qfixed m_curveThreshold; 187 qfixed m_dashThreshold; 173 188 174 189 void *m_customData; … … 209 224 qfixed miterLimit() const { return m_miterLimit; } 210 225 211 void setCurveThreshold(qfixed threshold) { m_curveThreshold = threshold; }212 qfixed curveThreshold() const { return m_curveThreshold; }213 214 226 void joinPoints(qfixed x, qfixed y, const QLineF &nextLine, LineJoinMode join); 215 227 inline void emitMoveTo(qfixed x, qfixed y); … … 228 240 qfixed m_strokeWidth; 229 241 qfixed m_miterLimit; 230 qfixed m_curveThreshold;231 242 232 243 LineJoinMode m_capStyle;
Note:
See TracChangeset
for help on using the changeset viewer.