aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmltablemodel/data/TestUtils.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmltablemodel/data/TestUtils.js')
-rw-r--r--tests/auto/qml/qqmltablemodel/data/TestUtils.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/auto/qml/qqmltablemodel/data/TestUtils.js b/tests/auto/qml/qqmltablemodel/data/TestUtils.js
deleted file mode 100644
index f6a5d4bb20..0000000000
--- a/tests/auto/qml/qqmltablemodel/data/TestUtils.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (C) 2019 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-
-function testModelRoleDataProvider(index, role, cellData) {
- switch (role) {
- case "display":
- switch (index.column) {
- case 0:
- return cellData.name
- case 1:
- return cellData.age
- }
- break
- case "name":
- return cellData.name
- case "age":
- return cellData.age
- }
- return cellData
-}