diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-08 09:10:40 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-08 10:34:08 +0200 |
commit | 74cf1f940c2f21c5e1dc01f8b57ddd7ea022aec1 (patch) | |
tree | dea3ba7685f9850d77cd347fd84426f267e2b87c /src/svg/qsvgstyle.cpp | |
parent | fd4d19bf8f878f18d0705530e73722981906f22a (diff) | |
download | qtsvg-74cf1f940c2f21c5e1dc01f8b57ddd7ea022aec1.tar.gz |
Use QList instead of QVector
Task-number: QTBUG-84469
Change-Id: I8c3e80c77422abeb23fff747bf4ca479ff0d35b3
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/svg/qsvgstyle.cpp')
-rw-r--r-- | src/svg/qsvgstyle.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/svg/qsvgstyle.cpp b/src/svg/qsvgstyle.cpp index 924cca0..f36dda8 100644 --- a/src/svg/qsvgstyle.cpp +++ b/src/svg/qsvgstyle.cpp @@ -336,7 +336,7 @@ void QSvgStrokeStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &stat setDashOffsetNeeded = true; } else { // If dash array was set, but not the width, the dash array has to be scaled with respect to the old width. - QVector<qreal> dashes = m_stroke.dashPattern(); + QList<qreal> dashes = m_stroke.dashPattern(); for (int i = 0; i < dashes.size(); ++i) dashes[i] /= oldWidth; pen.setDashPattern(dashes); @@ -344,7 +344,7 @@ void QSvgStrokeStyle::apply(QPainter *p, const QSvgNode *, QSvgExtraStates &stat } } else if (m_strokeWidthSet && pen.style() != Qt::SolidLine && scale != 1) { // If the width was set, but not the dash array, the old dash array must be scaled with respect to the new width. - QVector<qreal> dashes = pen.dashPattern(); + QList<qreal> dashes = pen.dashPattern(); for (int i = 0; i < dashes.size(); ++i) dashes[i] *= scale; pen.setDashPattern(dashes); @@ -381,10 +381,10 @@ void QSvgStrokeStyle::revert(QPainter *p, QSvgExtraStates &states) states.vectorEffect = m_oldVectorEffect; } -void QSvgStrokeStyle::setDashArray(const QVector<qreal> &dashes) +void QSvgStrokeStyle::setDashArray(const QList<qreal> &dashes) { if (m_strokeWidthSet) { - QVector<qreal> d = dashes; + QList<qreal> d = dashes; qreal w = m_stroke.widthF(); if (w != 0 && w != 1) { for (int i = 0; i < d.size(); ++i) @@ -648,7 +648,7 @@ QSvgAnimateTransform::QSvgAnimateTransform(int startMs, int endMs, int byMs ) Q_UNUSED(byMs); } -void QSvgAnimateTransform::setArgs(TransformType type, Additive additive, const QVector<qreal> &args) +void QSvgAnimateTransform::setArgs(TransformType type, Additive additive, const QList<qreal> &args) { m_type = type; m_args = args; |