SpeedsXml.qml Example File
qmlf1legends/qml/qmlf1legends/SpeedsXml.qml
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Charts module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick.XmlListModel 2.0
XmlListModel {
// Hard-coded test data
xml: "0 Fittipaldi 104.12
"
+"0 Stewart 106.12
"
+"0 Hunt 106.12
"
+"1 Fittipaldi 115.12
"
+"1 Stewart 114.12
"
+"1 Hunt 115.12
"
+"2 Hunt 165.23
"
+"2 Fittipaldi 175.23
"
+"2 Stewart 168.23
"
+"3 Hunt 104.87
"
+"3 Fittipaldi 104.43
"
+"3 Stewart 94.83
"
+"4 Hunt 107.87
"
+"4 Fittipaldi 111.84
"
+"4 Stewart 106.84
"
+"5 Hunt 94.87
"
+"5 Stewart 92.37
"
+"5 Fittipaldi 99.37
"
+"6 Hunt 52.87
"
+"6 Fittipaldi 42.87
"
+"6 Stewart 55.87
"
+"7 Hunt 77.87
"
+"7 Fittipaldi 72.87
"
+"7 Stewart 87.87
"
+"8 Hunt 94.17
"
+"8 Fittipaldi 98.17
"
+"8 Stewart 84.17
"
+"9 Hunt 91.87
"
+"9 Fittipaldi 71.87
"
+"9 Stewart 81.87
"
+"10 Hunt 104.87
"
+"10 Fittipaldi 115.87
"
+"10 Stewart 119.87
"
+"11 Hunt 162.87
"
+"11 Fittipaldi 155.84
"
+"11 Stewart 152.84
"
+"12 Hunt 181.87
"
+"12 Fittipaldi 161.85
"
+"12 Stewart 167.85
"
+"13 Hunt 155.87
"
+"13 Fittipaldi 154.87
"
+"13 Stewart 164.87
"
+"14 Hunt 197.57
"
+"14 Fittipaldi 187.54
"
+"14 Stewart 180.54
"
+"15 Fittipaldi 216.87
"
+"15 Hunt 207.87
"
+"15 Stewart 197.87
"
+"16 Hunt 82.87
"
+"16 Fittipaldi 79.37
"
+"16 Stewart 85.37
"
+"17 Hunt 153.87
"
+"17 Fittipaldi 143.87
"
+"17 Stewart 133.87
"
+"18 Hunt 89.87
"
+"18 Fittipaldi 95.85
"
+"18 Stewart 98.85
"
+"19 Hunt 169.87
"
+"19 Stewart 167.87
"
+"19 Fittipaldi 154.87
"
+" "
query: "/results/row"
XmlRole { name: "speedTrap"; query: "speedTrap/string()" }
XmlRole { name: "driver"; query: "driver/string()" }
XmlRole { name: "speed"; query: "speed/string()" }
}