aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/componentsplugin
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2015-07-16 12:00:48 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2015-07-17 10:03:08 +0000
commit5943219ba8b5eac2daa31fa7d54679fa68a1f9ea (patch)
tree3bd422e80083371fee0e37c4b550a3c01642eb04 /src/plugins/qmldesigner/componentsplugin
parentbae4bba3533b86949ddc597eb89230a17f93e824 (diff)
QmlDesigner.PropertyEditor: Add sheet for ApplicationWindow
Change-Id: Id3d05201a20fce24f20c65e101818ac2231f38ee Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmldesigner/componentsplugin')
-rw-r--r--src/plugins/qmldesigner/componentsplugin/Controls/ApplicationWindowSpecifics.qml148
-rw-r--r--src/plugins/qmldesigner/componentsplugin/componentsplugin.qrc1
2 files changed, 149 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/componentsplugin/Controls/ApplicationWindowSpecifics.qml b/src/plugins/qmldesigner/componentsplugin/Controls/ApplicationWindowSpecifics.qml
new file mode 100644
index 00000000000..d595b33e7a4
--- /dev/null
+++ b/src/plugins/qmldesigner/componentsplugin/Controls/ApplicationWindowSpecifics.qml
@@ -0,0 +1,148 @@
+/****************************************************************************
+**
+** Copyright (C) 2015 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing
+**
+** This file is part of Qt Creator.
+**
+** 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.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, The Qt Company gives you certain additional
+** rights. These rights are described in The Qt Company LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+****************************************************************************/
+
+import QtQuick 2.1
+import HelperWidgets 2.0
+import QtQuick.Layouts 1.0
+
+Column {
+ anchors.left: parent.left
+ anchors.right: parent.right
+
+ Section {
+ anchors.left: parent.left
+ anchors.right: parent.right
+ caption: qsTr("Window")
+
+ SectionLayout {
+ Label {
+ text: qsTr("Title")
+ }
+
+ SecondColumnLayout {
+ LineEdit {
+ backendValue: backendValues.title
+ Layout.fillWidth: true
+ }
+
+ ExpandingSpacer {
+
+ }
+ }
+
+ Label {
+ text: qsTr("Size")
+ }
+
+ SecondColumnLayout {
+ Label {
+ text: "W"
+ width: 12
+ }
+
+ SpinBox {
+ backendValue: backendValues.width
+ minimumValue: 0
+ maximumValue: 10000
+ decimals: 0
+ }
+
+ Label {
+ text: "H"
+ width: 12
+ }
+
+ SpinBox {
+ backendValue: backendValues.height
+ minimumValue: 0
+ maximumValue: 10000
+ decimals: 0
+ }
+
+ ExpandingSpacer {
+
+ }
+ }
+
+ }
+ }
+
+ Section {
+ anchors.left: parent.left
+ anchors.right: parent.right
+ caption: qsTr("Color")
+
+ ColorEditor {
+ caption: qsTr("Color")
+ backendValue: backendValues.color
+ supportGradient: true
+ }
+
+ }
+
+ Section {
+ anchors.left: parent.left
+ anchors.right: parent.right
+ caption: "Rectangle"
+
+ SectionLayout {
+ rows: 2
+ Label {
+ text: qsTr("Visible")
+ }
+ SecondColumnLayout {
+ CheckBox {
+ backendValue: backendValues.visible
+ Layout.preferredWidth: 80
+ }
+ ExpandingSpacer {
+
+ }
+ }
+ Label {
+ text: qsTr("Opacity")
+ }
+ SecondColumnLayout {
+ SpinBox {
+ backendValue: backendValues.opacity
+ hasSlider: true
+ Layout.preferredWidth: 80
+ minimumValue: 0
+ maximumValue: 1
+ stepSize: 0.1
+ decimals: 2
+ }
+ ExpandingSpacer {
+
+ }
+ }
+ }
+ }
+}
diff --git a/src/plugins/qmldesigner/componentsplugin/componentsplugin.qrc b/src/plugins/qmldesigner/componentsplugin/componentsplugin.qrc
index 9183872a84c..d844567ea0a 100644
--- a/src/plugins/qmldesigner/componentsplugin/componentsplugin.qrc
+++ b/src/plugins/qmldesigner/componentsplugin/componentsplugin.qrc
@@ -48,6 +48,7 @@
<file>Controls/CurrentIndexComboBox.qml</file>
<file>Controls/SplitViewSpecifics.qml</file>
<file>Controls/SliderSpecifics.qml</file>
+ <file>Controls/ApplicationWindowSpecifics.qml</file>
<file>Controls/OrientationCombobox.qml</file>
</qresource>
</RCC>