summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2013-10-09 11:34:28 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2013-10-09 11:37:37 +0200
commit59126cd9968657195c0c98173444215e3c2fe92e (patch)
tree8a100e93d79bd9df701fee0fa404d45b89117bc6
parent4778e656fb8bf27abcc6f7a5325825bd610d7d2b (diff)
downloadqt-creator-59126cd9968657195c0c98173444215e3c2fe92e.tar.gz
QmlDesigner.PropertyEditor: addding ImageSpecfics
Change-Id: I9933434803535cb871408a1e02bad00cbd5c83dd Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml109
1 files changed, 109 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml
new file mode 100644
index 0000000000..3fba1ff36b
--- /dev/null
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml
@@ -0,0 +1,109 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** 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 Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/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 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt 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("Image")
+
+ SectionLayout {
+ Label {
+ text: qsTr("Source")
+ }
+
+ SecondColumnLayout {
+ LineEdit {
+ backendValue: backendValues.source
+ implicitWidth: 180
+ }
+ ExpandingSpacer {
+
+ }
+ }
+
+ Label {
+ text: qsTr("Fill mode")
+ }
+
+ SecondColumnLayout {
+ ComboBox {
+ model: ["Stretch", "PreserveAspectFit", "PreserveAspectCrop", "Tile", "TileVertically", "TileHorizontally"]
+ backendValue: backendValues.fillMode
+ implicitWidth: 180
+ }
+
+ ExpandingSpacer {
+
+ }
+ }
+
+ Label {
+ text: qsTr("Source size")
+ }
+
+ SecondColumnLayout {
+ Label {
+ text: "W"
+ width: 12
+ }
+
+ SpinBox {
+ backendValue: backendValues.sourceSize_width
+ minimumValue: -2000
+ maximumValue: 2000
+ decimals: 0
+ }
+
+ Label {
+ text: "H"
+ width: 12
+ }
+
+ SpinBox {
+ backendValue: backendValues.sourceSize_height
+ minimumValue: -2000
+ maximumValue: 2000
+ decimals: 0
+ }
+
+ ExpandingSpacer {
+
+ }
+ }
+ }
+ }
+}