diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-01-28 12:50:20 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-01-30 09:29:39 +0100 |
commit | daf1f3f9ced82f139adbd7fd55b9288aa661b3e6 (patch) | |
tree | 8e67f1e514a50708c827c6abef2fb5afaab21df8 /tests/auto/widgets/dialogs/qfilesystemmodel | |
parent | 8020a5279359097fe7d61fcc26ef89db4079aea0 (diff) |
Fix a few test cases to not rely on QMultiHash only API for QHash
Change-Id: If4a741adec6f93d14bd5b21baa1dd062b49898ec
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/widgets/dialogs/qfilesystemmodel')
-rw-r--r-- | tests/auto/widgets/dialogs/qfilesystemmodel/tst_qfilesystemmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/dialogs/qfilesystemmodel/tst_qfilesystemmodel.cpp b/tests/auto/widgets/dialogs/qfilesystemmodel/tst_qfilesystemmodel.cpp index 7398cc103e..4e31c3e57c 100644 --- a/tests/auto/widgets/dialogs/qfilesystemmodel/tst_qfilesystemmodel.cpp +++ b/tests/auto/widgets/dialogs/qfilesystemmodel/tst_qfilesystemmodel.cpp @@ -1063,7 +1063,7 @@ void tst_QFileSystemModel::roleNames() QVERIFY(roles.contains(role)); QFETCH(QByteArray, roleName); - QCOMPARE(roles.values(role).count(), 1); + QCOMPARE(roles.contains(role), true); QCOMPARE(roles.value(role), roleName); } |