Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/svg/qsvgnode_p.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    119119
    120120    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;
    123123    QSvgStyleProperty *styleProperty(QSvgStyleProperty::Type type) const;
    124124    QSvgFillStyleProperty *styleProperty(const QString &id) const;
     
    127127
    128128    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;
    131132
    132133    void setRequiredFeatures(const QStringList &lst);
     
    157158    void setXmlClass(const QString &str);
    158159protected:
    159     QSvgStyle  m_style;
    160 
    161     qreal strokeWidth() const;
     160    mutable QSvgStyle m_style;
     161
     162    static qreal strokeWidth(QPainter *p);
    162163private:
    163164    QSvgNode   *m_parent;
     
    175176
    176177    DisplayMode m_displayMode;
     178    mutable QRectF m_cachedBounds;
    177179
    178180    friend class QSvgTinyDocument;
Note: See TracChangeset for help on using the changeset viewer.