diff options
Diffstat (limited to 'examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml')
-rw-r--r-- | examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml | 95 |
1 files changed, 78 insertions, 17 deletions
diff --git a/examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml b/examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml index 4382d374..e5c48562 100644 --- a/examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml +++ b/examples/datavisualization/qmlsurfacelayers/qml/qmlsurfacelayers/main.qml @@ -1,27 +1,36 @@ -/****************************************************************************** +/**************************************************************************** ** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ ** -** This file is part of the Qt Data Visualization module. -** -** $QT_BEGIN_LICENSE:COMM$ +** This file is part of the Qt Data Visualization 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 http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. +** 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 2.1 import QtQuick.Layouts 1.0 import QtQuick.Controls 1.0 +import QtQuick.Controls.Styles 1.0 import QtDataVisualization 1.0 import "." @@ -30,6 +39,8 @@ Item { width: 1280 height: 720 + property real fontSize: 12 + Item { id: surfaceView width: mainview.width - buttonLayout.width @@ -132,25 +143,48 @@ Item { //! [3] GroupBox { - title: "Layer Selection" + flat: true Layout.fillWidth: true Column { + spacing: 10 + + Label { + font.pointSize: fontSize + font.bold: true + text: "Layer Selection" + } + CheckBox { id: layerOneToggle - text: "Show Ground Layer" checked: true + style: CheckBoxStyle { + label: Label { + font.pointSize: fontSize + text: "Show Ground Layer" + } + } } CheckBox { id: layerTwoToggle - text: "Show Sea Layer" checked: true + style: CheckBoxStyle { + label: Label { + font.pointSize: fontSize + text: "Show Sea Layer" + } + } } CheckBox { id: layerThreeToggle - text: "Show Tectonic Layer" checked: true + style: CheckBoxStyle { + label: Label { + font.pointSize: fontSize + text: "Show Tectonic Layer" + } + } } } } @@ -158,12 +192,25 @@ Item { //! [5] GroupBox { - title: "Layer Style" + flat: true Layout.fillWidth: true Column { + spacing: 10 + + Label { + font.pointSize: fontSize + font.bold: true + text: "Layer Style" + } + CheckBox { id: layerOneGrid - text: "Show Ground as Grid" + style: CheckBoxStyle { + label: Label { + font.pointSize: fontSize + text: "Show Ground as Grid" + } + } onCheckedChanged: { if (checked) layerOneSeries.drawMode = Surface3DSeries.DrawWireframe @@ -174,7 +221,12 @@ Item { CheckBox { id: layerTwoGrid - text: "Show Sea as Grid" + style: CheckBoxStyle { + label: Label { + font.pointSize: fontSize + text: "Show Sea as Grid" + } + } onCheckedChanged: { if (checked) layerTwoSeries.drawMode = Surface3DSeries.DrawWireframe @@ -185,7 +237,12 @@ Item { CheckBox { id: layerThreeGrid - text: "Show Tectonic as Grid" + style: CheckBoxStyle { + label: Label { + font.pointSize: fontSize + text: "Show Tectonic as Grid" + } + } onCheckedChanged: { if (checked) layerThreeSeries.drawMode = Surface3DSeries.DrawWireframe @@ -201,6 +258,7 @@ Item { NewButton { id: sliceButton text: "Slice All Layers" + fontSize: fontSize Layout.fillWidth: true Layout.minimumHeight: 40 onClicked: { @@ -220,6 +278,7 @@ Item { NewButton { id: shadowButton + fontSize: fontSize Layout.fillWidth: true Layout.minimumHeight: 40 text: surfaceLayers.shadowsSupported ? "Show Shadows" : "Shadows not supported" @@ -237,6 +296,7 @@ Item { NewButton { id: renderModeButton + fontSize: fontSize text: "Switch Render Mode" Layout.fillWidth: true Layout.minimumHeight: 40 @@ -272,6 +332,7 @@ Item { TextField { id: renderLabel + font.pointSize: fontSize Layout.fillWidth: true Layout.minimumHeight: 40 enabled: false |