aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/QmltcTests/valueTypeListProperty.qml
blob: 7226abbb2e5de9c74201020996b76e79ec947b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import QtQml
import QtQuick

QtObject {
  property list<int> arrayOfInts: [1, 0, 42, -5]

  function incrementPlease() {
      arrayOfInts[2]++;
  }

    property list<font> arrayOfFonts: [
        Qt.font({ family: "Arial", pointSize: 20, weight: Font.DemiBold, italic: true }),
        Qt.font({ family: "Comic Sans", pointSize: 55, weight: Font.Bold, italic: false })
      ]

    property list<color> arrayOfColors: [
        "red",
        "green",
        "blue"
    ]
}