From b22cb209e706317f12416df1a1e8a8a19a271827 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Wed, 3 Oct 2018 08:55:13 +0200 Subject: Replace obsolete VisualDataModel, *Group and VisualItemModel in tests VisualDataModel, VisualDataGroup, and VisualItemModel are replaced with DelegateModel, DelegateModelGroup, and ObjectModel respectively (since 7cad0e52c5a020bd29635e9912fd8946a6b48124). git grep -l 'VisualDataModel' | xargs sed -i 's/VisualDataModel/DelegateModel/g' git grep -l 'VisualDataGroup' | xargs sed -i 's/VisualDataGroup/DelegateModelGroup/g' git grep -l 'VisualItemModel' | xargs sed -i 's/VisualItemModel/ObjectModel/g' Change-Id: Ie91b37b204f08a5d1f1f38594fb22ed70a6e2080 Reviewed-by: Shawn Rutledge --- tests/testapplications/text/text.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/testapplications/text/text.qml') diff --git a/tests/testapplications/text/text.qml b/tests/testapplications/text/text.qml index d2a8cff181..1737e70f30 100644 --- a/tests/testapplications/text/text.qml +++ b/tests/testapplications/text/text.qml @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2018 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. @@ -27,6 +27,7 @@ ****************************************************************************/ import QtQuick 2.0 +import QtQml.Models 2.12 Rectangle { height: 360; width: 640 @@ -105,7 +106,7 @@ Rectangle { anchors.right: parent.right Rectangle { anchors.fill: parent; color: "transparent"; border.color: "black" } ListView { id: controls; model: controlsmodel; anchors.fill: parent; clip: true; cacheBuffer: 500 } - VisualItemModel { + ObjectModel { id: controlsmodel ControlView { id: textvalue -- cgit v1.2.3