Changeset 846 for trunk/src/svg/qsvgstyle.cpp
- 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/qsvgstyle.cpp
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) … … 74 74 } 75 75 76 void QSvgFillStyleProperty::apply(QPainter *, const Q RectF &, QSvgNode *, QSvgExtraStates &)76 void QSvgFillStyleProperty::apply(QPainter *, const QSvgNode *, QSvgExtraStates &) 77 77 { 78 78 Q_ASSERT(!"This should not be called!"); … … 90 90 91 91 } 92 void QSvgQualityStyle::apply(QPainter *, const Q RectF &, QSvgNode *, QSvgExtraStates &)92 void QSvgQualityStyle::apply(QPainter *, const QSvgNode *, QSvgExtraStates &) 93 93 { 94 94 … … 137 137 } 138 138 139 void QSvgFillStyle::apply(QPainter *p, const Q RectF &, QSvgNode *, QSvgExtraStates &states)139 void QSvgFillStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &states) 140 140 { 141 141 m_oldFill = p->brush(); … … 170 170 } 171 171 172 void QSvgViewportFillStyle::apply(QPainter *p, const Q RectF &, QSvgNode *, QSvgExtraStates &)172 void QSvgViewportFillStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &) 173 173 { 174 174 m_oldFill = p->brush(); … … 225 225 } 226 226 227 void QSvgFontStyle::apply(QPainter *p, const Q RectF &, QSvgNode *, QSvgExtraStates &states)227 void QSvgFontStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &states) 228 228 { 229 229 m_oldQFont = p->font(); … … 242 242 243 243 if (m_sizeSet) 244 font.setPointSize (m_qfont.pointSizeF());244 font.setPointSizeF(m_qfont.pointSizeF()); 245 245 246 246 if (m_styleSet) … … 293 293 } 294 294 295 void QSvgStrokeStyle::apply(QPainter *p, const Q RectF &, QSvgNode *, QSvgExtraStates &states)295 void QSvgStrokeStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &states) 296 296 { 297 297 m_oldStroke = p->pen(); … … 444 444 } 445 445 446 void QSvgTransformStyle::apply(QPainter *p, const Q RectF &, QSvgNode *, QSvgExtraStates &)446 void QSvgTransformStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &) 447 447 { 448 448 m_oldWorldTransform = p->worldTransform(); … … 502 502 } 503 503 504 void QSvgCompOpStyle::apply(QPainter *p, const Q RectF &, QSvgNode *, QSvgExtraStates &)504 void QSvgCompOpStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &) 505 505 { 506 506 m_oldMode = p->compositionMode(); … … 522 522 } 523 523 524 void QSvgStyle::apply(QPainter *p, const Q RectF &rect, QSvgNode *node, QSvgExtraStates &states)524 void QSvgStyle::apply(QPainter *p, const QSvgNode *node, QSvgExtraStates &states) 525 525 { 526 526 if (quality) { 527 quality->apply(p, rect,node, states);527 quality->apply(p, node, states); 528 528 } 529 529 530 530 if (fill) { 531 fill->apply(p, rect,node, states);531 fill->apply(p, node, states); 532 532 } 533 533 534 534 if (viewportFill) { 535 viewportFill->apply(p, rect,node, states);535 viewportFill->apply(p, node, states); 536 536 } 537 537 538 538 if (font) { 539 font->apply(p, rect,node, states);539 font->apply(p, node, states); 540 540 } 541 541 542 542 if (stroke) { 543 stroke->apply(p, rect,node, states);543 stroke->apply(p, node, states); 544 544 } 545 545 546 546 if (transform) { 547 transform->apply(p, rect,node, states);547 transform->apply(p, node, states); 548 548 } 549 549 550 550 if (animateColor) { 551 animateColor->apply(p, rect,node, states);551 animateColor->apply(p, node, states); 552 552 } 553 553 … … 573 573 for (; itr != animateTransforms.constEnd(); ++itr) { 574 574 if ((*itr)->animActive(totalTimeElapsed)) 575 (*itr)->apply(p, rect,node, states);575 (*itr)->apply(p, node, states); 576 576 } 577 577 } 578 578 579 579 if (opacity) { 580 opacity->apply(p, rect,node, states);580 opacity->apply(p, node, states); 581 581 } 582 582 583 583 if (compop) { 584 compop->apply(p, rect,node, states);584 compop->apply(p, node, states); 585 585 } 586 586 } … … 656 656 } 657 657 658 void QSvgAnimateTransform::apply(QPainter *p, const Q RectF &, QSvgNode *node, QSvgExtraStates &)658 void QSvgAnimateTransform::apply(QPainter *p, const QSvgNode *node, QSvgExtraStates &) 659 659 { 660 660 m_oldWorldTransform = p->worldTransform(); … … 670 670 } 671 671 672 void QSvgAnimateTransform::resolveMatrix( QSvgNode *node)672 void QSvgAnimateTransform::resolveMatrix(const QSvgNode *node) 673 673 { 674 674 static const qreal deg2rad = qreal(0.017453292519943295769); … … 835 835 } 836 836 837 void QSvgAnimateColor::apply(QPainter *p, const Q RectF &, QSvgNode *node, QSvgExtraStates &)837 void QSvgAnimateColor::apply(QPainter *p, const QSvgNode *node, QSvgExtraStates &) 838 838 { 839 839 qreal totalTimeElapsed = node->document()->currentElapsed(); … … 913 913 } 914 914 915 void QSvgOpacityStyle::apply(QPainter *p, const Q RectF &, QSvgNode *, QSvgExtraStates &)915 void QSvgOpacityStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &) 916 916 { 917 917 m_oldOpacity = p->opacity();
Note:
See TracChangeset
for help on using the changeset viewer.