From 9fa3cf15c8500fba5bbb861f1925160815ae2afd Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 22 Jun 2020 11:44:14 +0200 Subject: Use QList instead of QVector in gui Applied to headers only. Source file to be changed separately. Task-number: QTBUG-84469 Change-Id: Ic08a899321eaffc46b8461aaee3dbaa4d2c727a9 Reviewed-by: Laszlo Agocs --- src/gui/kernel/qhighdpiscaling_p.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/kernel/qhighdpiscaling_p.h') diff --git a/src/gui/kernel/qhighdpiscaling_p.h b/src/gui/kernel/qhighdpiscaling_p.h index ed493a94c6..dfacf2a4f3 100644 --- a/src/gui/kernel/qhighdpiscaling_p.h +++ b/src/gui/kernel/qhighdpiscaling_p.h @@ -52,11 +52,11 @@ // #include +#include +#include #include #include #include -#include -#include #include #include #include @@ -184,13 +184,13 @@ inline QMargins scale(const QMargins &margins, qreal scaleFactor, QPoint origin qRound(qreal(margins.right()) * scaleFactor), qRound(qreal(margins.bottom()) * scaleFactor)); } -template -QVector scale(const QVector &vector, qreal scaleFactor, QPoint origin = QPoint(0, 0)) +template +QList scale(const QList &vector, qreal scaleFactor, QPoint origin = QPoint(0, 0)) { if (!QHighDpiScaling::isActive()) return vector; - QVector scaled; + QList scaled; scaled.reserve(vector.size()); for (const T &item : vector) scaled.append(scale(item, scaleFactor, origin)); -- cgit v1.2.3