summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-22 15:34:48 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-25 10:14:24 +0200
commite721ec269e972ea2754cb9bd27fb73b72ed53c7b (patch)
treeb09bb4ca8fe18d528a0a88cb310ecd1f8dc9216f /tests/auto/other/qaccessibility/tst_qaccessibility.cpp
parentb62f32a4dd87010e4c51d33ef440e2fbba531361 (diff)
Use QList instead of QVector in other tests
Task-number: QTBUG-84469 Change-Id: I656c9f73bd2364be39ee67747524e7c4a25c0935 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/other/qaccessibility/tst_qaccessibility.cpp')
-rw-r--r--tests/auto/other/qaccessibility/tst_qaccessibility.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
index 07cccde0c8..b3ac7489b7 100644
--- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
+++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp
@@ -2499,7 +2499,8 @@ void tst_QAccessibility::groupBoxTest()
QCOMPARE(iface->role(), QAccessible::Grouping);
QCOMPARE(iface->text(QAccessible::Name), QLatin1String("Test QGroupBox"));
QCOMPARE(iface->text(QAccessible::Description), QLatin1String("This group box will be used to test accessibility"));
- QVector<QPair<QAccessibleInterface*, QAccessible::Relation> > relations = rButtonIface->relations();
+ QList<QPair<QAccessibleInterface *, QAccessible::Relation>> relations =
+ rButtonIface->relations();
QCOMPARE(relations.size(), 1);
QPair<QAccessibleInterface*, QAccessible::Relation> relation = relations.first();
QCOMPARE(relation.first->object(), groupBox);
@@ -2572,7 +2573,7 @@ void tst_QAccessibility::dialogButtonBoxTest()
child = iface->child(0);
QCOMPARE(child->role(), QAccessible::PushButton);
- QVector<QAccessibleInterface *> buttons;
+ QList<QAccessibleInterface *> buttons;
for (int i = 0; i < iface->childCount(); ++i)
buttons << iface->child(i);
@@ -2624,7 +2625,7 @@ void tst_QAccessibility::dialogButtonBoxTest()
QApplication::processEvents();
QStringList actualOrder;
- QVector<QAccessibleInterface *> buttons;
+ QList<QAccessibleInterface *> buttons;
for (int i = 0; i < iface->childCount(); ++i)
buttons << iface->child(i);
@@ -3672,7 +3673,7 @@ void tst_QAccessibility::labelTest()
QCOMPARE(acc_label->state().focusable, false);
QCOMPARE(acc_label->state().readOnly, true);
- QVector<QPair<QAccessibleInterface *, QAccessible::Relation> > rels = acc_label->relations();
+ QList<QPair<QAccessibleInterface *, QAccessible::Relation>> rels = acc_label->relations();
QCOMPARE(rels.count(), 1);
QAccessibleInterface *iface = rels.first().first;
QAccessible::Relation rel = rels.first().second;
@@ -4014,7 +4015,7 @@ public:
}
private:
- QVector<QAccessibleInterface *> m_children;
+ QList<QAccessibleInterface *> m_children;
};
void tst_QAccessibility::focusChild()