Changeset 846 for trunk/src/svg/qsvgnode_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/qsvgnode_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) … … 119 119 120 120 void appendStyleProperty(QSvgStyleProperty *prop, const QString &id); 121 void applyStyle(QPainter *p, QSvgExtraStates &states) ;122 void revertStyle(QPainter *p, QSvgExtraStates &states) ;121 void applyStyle(QPainter *p, QSvgExtraStates &states) const; 122 void revertStyle(QPainter *p, QSvgExtraStates &states) const; 123 123 QSvgStyleProperty *styleProperty(QSvgStyleProperty::Type type) const; 124 124 QSvgFillStyleProperty *styleProperty(const QString &id) const; … … 127 127 128 128 virtual Type type() const =0; 129 virtual QRectF bounds() const; 130 virtual QRectF transformedBounds(const QTransform &transform) const; 129 virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const; 130 virtual QRectF transformedBounds(QPainter *p, QSvgExtraStates &states) const; 131 QRectF transformedBounds() const; 131 132 132 133 void setRequiredFeatures(const QStringList &lst); … … 157 158 void setXmlClass(const QString &str); 158 159 protected: 159 QSvgStylem_style;160 161 qreal strokeWidth() const;160 mutable QSvgStyle m_style; 161 162 static qreal strokeWidth(QPainter *p); 162 163 private: 163 164 QSvgNode *m_parent; … … 175 176 176 177 DisplayMode m_displayMode; 178 mutable QRectF m_cachedBounds; 177 179 178 180 friend class QSvgTinyDocument;
Note:
See TracChangeset
for help on using the changeset viewer.