Changeset 846 for trunk/src/svg/qsvggraphics_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/svg/qsvggraphics_p.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 81 81 virtual void draw(QPainter *p, QSvgExtraStates &states); 82 82 virtual Type type() const; 83 virtual QRectF bounds() const; 84 private: 85 QPainterPath cubic; 86 QRectF m_cachedBounds; 87 }; 88 89 class QSvgCircle : public QSvgNode 90 { 91 public: 92 QSvgCircle(QSvgNode *parent, const QRectF &rect); 93 virtual void draw(QPainter *p, QSvgExtraStates &states); 94 virtual Type type() const; 95 virtual QRectF bounds() const; 83 virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const; 84 private: 85 QPainterPath m_path; 86 }; 87 88 class QSvgEllipse : public QSvgNode 89 { 90 public: 91 QSvgEllipse(QSvgNode *parent, const QRectF &rect); 92 virtual void draw(QPainter *p, QSvgExtraStates &states); 93 virtual Type type() const; 94 virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const; 96 95 private: 97 96 QRectF m_bounds; 98 97 }; 99 98 100 class QSvgEllipse : public QSvgNode 101 { 102 public: 103 QSvgEllipse(QSvgNode *parent, const QRectF &rect); 104 virtual void draw(QPainter *p, QSvgExtraStates &states); 105 virtual Type type() const; 106 virtual QRectF bounds() const; 107 private: 108 QRectF m_bounds; 99 class QSvgCircle : public QSvgEllipse 100 { 101 public: 102 QSvgCircle(QSvgNode *parent, const QRectF &rect) : QSvgEllipse(parent, rect) { } 103 virtual Type type() const; 109 104 }; 110 105 … … 116 111 virtual void draw(QPainter *p, QSvgExtraStates &states); 117 112 virtual Type type() const; 118 virtual QRectF bounds( ) const;113 virtual QRectF bounds() const; 119 114 private: 120 115 QImage m_image; … … 128 123 virtual void draw(QPainter *p, QSvgExtraStates &states); 129 124 virtual Type type() const; 130 virtual QRectF bounds( ) const;131 private: 132 QLineF m_ bounds;125 virtual QRectF bounds() const; 126 private: 127 QLineF m_; 133 128 }; 134 129 … … 139 134 virtual void draw(QPainter *p, QSvgExtraStates &states); 140 135 virtual Type type() const; 141 virtual QRectF bounds( ) const;136 virtual QRectF bounds() const; 142 137 143 138 QPainterPath *qpath() { … … 146 141 private: 147 142 QPainterPath m_path; 148 mutable QRectF m_cachedBounds;149 143 }; 150 144 … … 155 149 virtual void draw(QPainter *p, QSvgExtraStates &states); 156 150 virtual Type type() const; 157 virtual QRectF bounds( ) const;151 virtual QRectF bounds() const; 158 152 private: 159 153 QPolygonF m_poly; … … 166 160 virtual void draw(QPainter *p, QSvgExtraStates &states); 167 161 virtual Type type() const; 168 virtual QRectF bounds( ) const;162 virtual QRectF bounds() const; 169 163 private: 170 164 QPolygonF m_poly; … … 177 171 virtual Type type() const; 178 172 virtual void draw(QPainter *p, QSvgExtraStates &states); 179 virtual QRectF bounds( ) const;173 virtual QRectF bounds() const; 180 174 private: 181 175 QRectF m_rect; … … 206 200 void setWhitespaceMode(WhitespaceMode mode) {m_mode = mode;} 207 201 208 //virtual QRectF bounds( ) const;202 //virtual QRectF bounds() const; 209 203 private: 210 204 static QSvgTspan * const LINEBREAK; … … 249 243 virtual void draw(QPainter *p, QSvgExtraStates &states); 250 244 virtual Type type() const; 251 virtual QRectF bounds() const; 252 virtual QRectF transformedBounds(const QTransform &transform) const; 245 virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const; 253 246 254 247 private: 255 248 QSvgNode *m_link; 256 249 QPointF m_start; 257 mutable QRectF m_bounds;258 250 }; 259 251
Note:
See TracChangeset
for help on using the changeset viewer.