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/qsvggraphics_p.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    8181    virtual void draw(QPainter *p, QSvgExtraStates &states);
    8282    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;
     84private:
     85    QPainterPath m_path;
     86};
     87
     88class QSvgEllipse : public QSvgNode
     89{
     90public:
     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;
    9695private:
    9796    QRectF m_bounds;
    9897};
    9998
    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;
     99class QSvgCircle : public QSvgEllipse
     100{
     101public:
     102    QSvgCircle(QSvgNode *parent, const QRectF &rect) : QSvgEllipse(parent, rect) { }
     103    virtual Type type() const;
    109104};
    110105
     
    116111    virtual void draw(QPainter *p, QSvgExtraStates &states);
    117112    virtual Type type() const;
    118     virtual QRectF bounds() const;
     113    virtual QRectF bounds() const;
    119114private:
    120115    QImage m_image;
     
    128123    virtual void draw(QPainter *p, QSvgExtraStates &states);
    129124    virtual Type type() const;
    130     virtual QRectF bounds() const;
    131 private:
    132     QLineF m_bounds;
     125    virtual QRectF bounds() const;
     126private:
     127    QLineF m_;
    133128};
    134129
     
    139134    virtual void draw(QPainter *p, QSvgExtraStates &states);
    140135    virtual Type type() const;
    141     virtual QRectF bounds() const;
     136    virtual QRectF bounds() const;
    142137
    143138    QPainterPath *qpath() {
     
    146141private:
    147142    QPainterPath m_path;
    148     mutable QRectF m_cachedBounds;
    149143};
    150144
     
    155149    virtual void draw(QPainter *p, QSvgExtraStates &states);
    156150    virtual Type type() const;
    157     virtual QRectF bounds() const;
     151    virtual QRectF bounds() const;
    158152private:
    159153    QPolygonF m_poly;
     
    166160    virtual void draw(QPainter *p, QSvgExtraStates &states);
    167161    virtual Type type() const;
    168     virtual QRectF bounds() const;
     162    virtual QRectF bounds() const;
    169163private:
    170164    QPolygonF m_poly;
     
    177171    virtual Type type() const;
    178172    virtual void draw(QPainter *p, QSvgExtraStates &states);
    179     virtual QRectF bounds() const;
     173    virtual QRectF bounds() const;
    180174private:
    181175    QRectF m_rect;
     
    206200    void setWhitespaceMode(WhitespaceMode mode) {m_mode = mode;}
    207201
    208     //virtual QRectF bounds() const;
     202    //virtual QRectF bounds() const;
    209203private:
    210204    static QSvgTspan * const LINEBREAK;
     
    249243    virtual void draw(QPainter *p, QSvgExtraStates &states);
    250244    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;
    253246
    254247private:
    255248    QSvgNode *m_link;
    256249    QPointF   m_start;
    257     mutable QRectF    m_bounds;
    258250};
    259251
Note: See TracChangeset for help on using the changeset viewer.