Debian Codegraph @

tests/unit/statesaver11/SaveSupportedTypes.qml

raw
1 /*
2 * Copyright 2013 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 import QtQuick 2.0
18 import Lomiri.Components 1.1
19
20 Item {
21 property int intValue: 100
22 property bool boolValue: false
23 property real realValue: 123.45
24 property double doubleValue: 32155.2355
25 property string string: "component string"
26 property url url: Qt.resolvedUrl("SaveSupportedTypes.qml")
27
28 property date date: new Date()
29 property point point: Qt.point(10, 10)
30 property rect rect: Qt.rect(0, 0, 20, 20)
31 property size size: Qt.size(20, 30)
32 property color color: "red"
33 property font font: Qt.font({family: "Courrier New"})
34 property vector2d vector2d: Qt.vector2d(1, 2)
35 property vector3d vector3d: Qt.vector3d(1, 2, 3)
36 property vector4d vector4d: Qt.vector4d(1, 2, 3, 4)
37 property quaternion quaternion: Qt.quaternion(0.5, 1, 2, 3)
38 property matrix4x4 matrix4x4: Qt.matrix4x4(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)
39 id: testItem
40 objectName: "testItem"
41 StateSaver.properties: "intValue, boolValue, realValue, doubleValue, string, url,"+
42 "date, point, rect, size, time, color, font, vector2d, vector3d, vector4d, quaternion, matrix4x4"
43 }