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/kernel/qwidget/tst_qwidget.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/auto/widgets/kernel/qwidget') diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp index 5aefc0f7f6..4b6703e07e 100644 --- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp +++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp @@ -2095,9 +2095,9 @@ void tst_QWidget::tabOrderWithCompoundWidgets() QVERIFY(lastEdit->hasFocus()); } -static QVector getFocusChain(QWidget *start, bool bForward) +static QList getFocusChain(QWidget *start, bool bForward) { - QVector ret; + QList ret; QWidget *cur = start; do { ret += cur; @@ -5130,14 +5130,14 @@ void tst_QWidget::qobject_castInDestroyedSlot() // Since X11 WindowManager operations are all async, and we have no way to know if the window // manager has finished playing with the window geometry, this test can't be reliable on X11. -using Rects = QVector; +using Rects = QList; void tst_QWidget::setWindowGeometry_data() { QTest::addColumn("rects"); QTest::addColumn("windowFlags"); - QVector rects; + QList rects; const int width = m_testWidgetSize.width(); const int height = m_testWidgetSize.height(); const QRect availableAdjusted = QGuiApplication::primaryScreen()->availableGeometry().adjusted(100, 100, -100, -100); @@ -8344,7 +8344,7 @@ void tst_QWidget::alienWidgets() } } -using WidgetAttributes = QVector; +using WidgetAttributes = QList; void tst_QWidget::nativeWindowPosition_data() { -- cgit v1.2.3