blob: cad1c15c13407316720123e663ea8c3e2f415114 (
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
25
26
27
28
29
30
31
|
// Copyright (C) 2024 Stan Morris
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick.Controls
import IndexedSpiral
Window {
width: spiral.width + 40
height: spiral.height + 40
visible: true
title: qsTr("QSGGeometry::setIndexCount() tester")
color: "#444"
// Rectangle { anchors.fill: spiral; color: "#4400FFFF" }
IndexedSpiralItem {
id: spiral
anchors.centerIn: parent
indexCount: slider.value
}
Slider {
id: slider
anchors {
left: parent.left; top: parent.top; bottom: parent.bottom
}
orientation: Qt.Vertical
from: 2 * spiral.maxIndices - 1
to: 0
value: spiral.maxIndices
}
}
|