From 5accfa1e6875582022cb4b6194c3e7616df1a0b7 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 22 Jun 2020 16:15:32 +0200 Subject: Use QList instead of QVector in widgets tests Task-number: QTBUG-84469 Change-Id: I490fdb237afad2d8a15954fe34d6b549a83fa4aa Reviewed-by: Lars Knoll --- tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/auto/widgets/styles/qstylesheetstyle') diff --git a/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp b/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp index 14c8d1772d..00939e5118 100644 --- a/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp +++ b/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp @@ -1086,7 +1086,7 @@ void tst_QStyleSheetStyle::background() typedef QSharedPointer WidgetPtr; const QString styleSheet = QStringLiteral("* { background-color: #e8ff66; }"); - QVector widgets; + QList widgets; const QPoint topLeft = m_availableGeometry.topLeft(); // Testing inheritance styling of QDialog. WidgetPtr toplevel(new SingleInheritanceDialog); @@ -1602,8 +1602,8 @@ void tst_QStyleSheetStyle::toolTip() // including one without stylesheet (the tooltip will be reused, // but its color must change) const QWidgetList widgets{wid4, wid1, wid2, wid3, wid4}; - const QVector colors{normalToolTip, QColor("#ae2"), QColor("#f81"), - QColor("#0b8"), normalToolTip}; + const QList colors { normalToolTip, QColor("#ae2"), QColor("#f81"), QColor("#0b8"), + normalToolTip }; QWidgetList topLevels; for (int i = 0; i < widgets.count() ; ++i) { -- cgit v1.2.3