8import QGroundControl.Controls
16 font.family: ScreenTools.normalFontFamily
21 anchors.top: parent.top
22 anchors.left: parent.left
25 text: qsTr("Qt Platform:")
27 font.family: ScreenTools.normalFontFamily
32 font.family: ScreenTools.normalFontFamily
35 text: qsTr("Font Point Size 10")
38 font.family: ScreenTools.normalFontFamily
41 text: qsTr("Default font width:")
43 font.family: ScreenTools.normalFontFamily
46 text: _textMeasure.contentWidth
48 font.family: ScreenTools.normalFontFamily
51 text: qsTr("Font Point Size 10.5")
54 font.family: ScreenTools.normalFontFamily
57 text: qsTr("Default font height:")
59 font.family: ScreenTools.normalFontFamily
62 text: _textMeasure.contentHeight
64 font.family: ScreenTools.normalFontFamily
67 text: qsTr("Font Point Size 11")
70 font.family: ScreenTools.normalFontFamily
73 text: qsTr("Default font pixel size:")
75 font.family: ScreenTools.normalFontFamily
78 text: _textMeasure.font.pointSize
80 font.family: ScreenTools.normalFontFamily
83 text: qsTr("Font Point Size 11.5")
86 font.family: ScreenTools.normalFontFamily
89 text: qsTr("Default font point size:")
91 font.family: ScreenTools.normalFontFamily
94 text: _textMeasure.font.pointSize
96 font.family: ScreenTools.normalFontFamily
99 text: qsTr("Font Point Size 12")
102 font.family: ScreenTools.normalFontFamily
105 text: qsTr("QML Screen Desktop:")
107 font.family: ScreenTools.normalFontFamily
110 text: Screen.desktopAvailableWidth + " x " + Screen.desktopAvailableHeight
112 font.family: ScreenTools.normalFontFamily
115 text: qsTr("Font Point Size 12.5")
118 font.family: ScreenTools.normalFontFamily
121 text: qsTr("QML Screen Size:")
123 font.family: ScreenTools.normalFontFamily
126 text: Screen.width + " x " + Screen.height
128 font.family: ScreenTools.normalFontFamily
131 text: qsTr("Font Point Size 13")
134 font.family: ScreenTools.normalFontFamily
137 text: qsTr("QML Pixel Density:")
139 font.family: ScreenTools.normalFontFamily
142 text: Screen.pixelDensity.toFixed(4)
144 font.family: ScreenTools.normalFontFamily
147 text: qsTr("Font Point Size 13.5")
150 font.family: ScreenTools.normalFontFamily
153 text: qsTr("QML Pixel Ratio:")
155 font.family: ScreenTools.normalFontFamily
158 text: Screen.devicePixelRatio
160 font.family: ScreenTools.normalFontFamily
163 text: qsTr("Font Point Size 14")
166 font.family: ScreenTools.normalFontFamily
169 text: qsTr("Default Point:")
171 font.family: ScreenTools.normalFontFamily
174 text: ScreenTools.defaultFontPointSize
176 font.family: ScreenTools.normalFontFamily
179 text: qsTr("Font Point Size 14.5")
182 font.family: ScreenTools.normalFontFamily
185 text: qsTr("Computed Font Height:")
187 font.family: ScreenTools.normalFontFamily
190 text: ScreenTools.defaultFontPixelHeight
192 font.family: ScreenTools.normalFontFamily
195 text: qsTr("Font Point Size 15")
198 font.family: ScreenTools.normalFontFamily
201 text: qsTr("Computed Screen Height:")
203 font.family: ScreenTools.normalFontFamily
206 text: (Screen.height / Screen.pixelDensity * Screen.devicePixelRatio).toFixed(0)
208 font.family: ScreenTools.normalFontFamily
211 text: qsTr("Font Point Size 15.5")
214 font.family: ScreenTools.normalFontFamily
217 text: qsTr("Computed Screen Width:")
219 font.family: ScreenTools.normalFontFamily
222 text: (Screen.width / Screen.pixelDensity * Screen.devicePixelRatio).toFixed(0)
224 font.family: ScreenTools.normalFontFamily
227 text: qsTr("Font Point Size 16")
230 font.family: ScreenTools.normalFontFamily
233 text: qsTr("Desktop Available Width:")
235 font.family: ScreenTools.normalFontFamily
238 text: Screen.desktopAvailableWidth
240 font.family: ScreenTools.normalFontFamily
243 text: qsTr("Font Point Size 16.5")
246 font.family: ScreenTools.normalFontFamily
249 text: qsTr("Desktop Available Height:")
251 font.family: ScreenTools.normalFontFamily
254 text: Screen.desktopAvailableHeight
256 font.family: ScreenTools.normalFontFamily
259 text: qsTr("Font Point Size 17")
262 font.family: ScreenTools.normalFontFamily
271 anchors.right: parent.right
272 anchors.bottom: parent.bottom
276 anchors.centerIn: parent
281 Component.onCompleted: {
282 for (var i = 10; i < 360; i = i + 60) {
283 var colorValue = Qt.hsla(i/360, 0.85, 0.5, 1);
284 seriesColors.push(colorValue)
285 colorListModel.append({"colorValue": colorValue.toString()})
289 property var seriesColors: []
298 anchors.right: square.left
299 anchors.bottom: parent.bottom
302 model: colorListModel
303 delegate: Rectangle {
310 font.pointSize: _textMeasure.font.pointSize * 0.75
311 anchors.centerIn: parent