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/qsvgstyle.cpp

    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)
     
    7474}
    7575
    76 void QSvgFillStyleProperty::apply(QPainter *, const QRectF &, QSvgNode *, QSvgExtraStates &)
     76void QSvgFillStyleProperty::apply(QPainter *, const QSvgNode *, QSvgExtraStates &)
    7777{
    7878    Q_ASSERT(!"This should not be called!");
     
    9090
    9191}
    92 void QSvgQualityStyle::apply(QPainter *, const QRectF &, QSvgNode *, QSvgExtraStates &)
     92void QSvgQualityStyle::apply(QPainter *, const QSvgNode *, QSvgExtraStates &)
    9393{
    9494
     
    137137}
    138138
    139 void QSvgFillStyle::apply(QPainter *p, const QRectF &, QSvgNode *, QSvgExtraStates &states)
     139void QSvgFillStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &states)
    140140{
    141141    m_oldFill = p->brush();
     
    170170}
    171171
    172 void QSvgViewportFillStyle::apply(QPainter *p, const QRectF &, QSvgNode *, QSvgExtraStates &)
     172void QSvgViewportFillStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &)
    173173{
    174174    m_oldFill = p->brush();
     
    225225}
    226226
    227 void QSvgFontStyle::apply(QPainter *p, const QRectF &, QSvgNode *, QSvgExtraStates &states)
     227void QSvgFontStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &states)
    228228{
    229229    m_oldQFont = p->font();
     
    242242
    243243    if (m_sizeSet)
    244         font.setPointSize(m_qfont.pointSizeF());
     244        font.setPointSizeF(m_qfont.pointSizeF());
    245245
    246246    if (m_styleSet)
     
    293293}
    294294
    295 void QSvgStrokeStyle::apply(QPainter *p, const QRectF &, QSvgNode *, QSvgExtraStates &states)
     295void QSvgStrokeStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &states)
    296296{
    297297    m_oldStroke = p->pen();
     
    444444}
    445445
    446 void QSvgTransformStyle::apply(QPainter *p, const QRectF &, QSvgNode *, QSvgExtraStates &)
     446void QSvgTransformStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &)
    447447{
    448448    m_oldWorldTransform = p->worldTransform();
     
    502502}
    503503
    504 void QSvgCompOpStyle::apply(QPainter *p, const QRectF &, QSvgNode *, QSvgExtraStates &)
     504void QSvgCompOpStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &)
    505505{
    506506    m_oldMode = p->compositionMode();
     
    522522}
    523523
    524 void QSvgStyle::apply(QPainter *p, const QRectF &rect, QSvgNode *node, QSvgExtraStates &states)
     524void QSvgStyle::apply(QPainter *p, const QSvgNode *node, QSvgExtraStates &states)
    525525{
    526526    if (quality) {
    527         quality->apply(p, rect, node, states);
     527        quality->apply(p, node, states);
    528528    }
    529529
    530530    if (fill) {
    531         fill->apply(p, rect, node, states);
     531        fill->apply(p, node, states);
    532532    }
    533533
    534534    if (viewportFill) {
    535         viewportFill->apply(p, rect, node, states);
     535        viewportFill->apply(p, node, states);
    536536    }
    537537
    538538    if (font) {
    539         font->apply(p, rect, node, states);
     539        font->apply(p, node, states);
    540540    }
    541541
    542542    if (stroke) {
    543         stroke->apply(p, rect, node, states);
     543        stroke->apply(p, node, states);
    544544    }
    545545
    546546    if (transform) {
    547         transform->apply(p, rect, node, states);
     547        transform->apply(p, node, states);
    548548    }
    549549
    550550    if (animateColor) {
    551         animateColor->apply(p, rect, node, states);
     551        animateColor->apply(p, node, states);
    552552    }
    553553
     
    573573        for (; itr != animateTransforms.constEnd(); ++itr) {
    574574            if ((*itr)->animActive(totalTimeElapsed))
    575                 (*itr)->apply(p, rect, node, states);
     575                (*itr)->apply(p, node, states);
    576576        }
    577577    }
    578578
    579579    if (opacity) {
    580         opacity->apply(p, rect, node, states);
     580        opacity->apply(p, node, states);
    581581    }
    582582
    583583    if (compop) {
    584         compop->apply(p, rect, node, states);
     584        compop->apply(p, node, states);
    585585    }
    586586}
     
    656656}
    657657
    658 void QSvgAnimateTransform::apply(QPainter *p, const QRectF &, QSvgNode *node, QSvgExtraStates &)
     658void QSvgAnimateTransform::apply(QPainter *p, const QSvgNode *node, QSvgExtraStates &)
    659659{
    660660    m_oldWorldTransform = p->worldTransform();
     
    670670}
    671671
    672 void QSvgAnimateTransform::resolveMatrix(QSvgNode *node)
     672void QSvgAnimateTransform::resolveMatrix(const QSvgNode *node)
    673673{
    674674    static const qreal deg2rad = qreal(0.017453292519943295769);
     
    835835}
    836836
    837 void QSvgAnimateColor::apply(QPainter *p, const QRectF &, QSvgNode *node, QSvgExtraStates &)
     837void QSvgAnimateColor::apply(QPainter *p, const QSvgNode *node, QSvgExtraStates &)
    838838{
    839839    qreal totalTimeElapsed = node->document()->currentElapsed();
     
    913913}
    914914
    915 void QSvgOpacityStyle::apply(QPainter *p, const QRectF &, QSvgNode *, QSvgExtraStates &)
     915void QSvgOpacityStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &)
    916916{
    917917    m_oldOpacity = p->opacity();
Note: See TracChangeset for help on using the changeset viewer.