summaryrefslogtreecommitdiff
path: root/share/qtcreator/qmldesigner/propertyEditorQmlSources
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/qmldesigner/propertyEditorQmlSources')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml62
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimatedImageSpecifics.qml95
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/BorderImageSpecifics.qml68
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GridSpecifics.qml25
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml132
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/MouseAreaSpecifics.qml193
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml13
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FlickableSection.qml60
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontSection.qml31
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/StandardTextSection.qml72
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Constants.qml96
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/InternalConstants.qml131
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/icons.ttfbin10568 -> 11448 bytes
-rwxr-xr-xshare/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/qmldir2
14 files changed, 874 insertions, 106 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml
index 4eb7420d74..5434e4705b 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml
@@ -100,14 +100,17 @@ Section {
}
Label {
- text: "State"
+ text: qsTr("State")
}
SecondColumnLayout {
- LineEdit {
+
+ ComboBox {
+ Layout.fillWidth: true
backendValue: backendValues.state
- showTranslateCheckBox: false
- enabled: anchorBackend.hasParent || isBaseState
+ model: allStateNames
+ valueType: ComboBox.String
}
+
ExpandingSpacer {
}
}
@@ -158,5 +161,56 @@ Section {
}
}
+ Label {
+ text: qsTr("Focus")
+ tooltip: qsTr("Holds whether the item has focus within the enclosing FocusScope.")
+ disabledState: !backendValues.focus.isAvailable
+ }
+ SecondColumnLayout {
+ CheckBox {
+ backendValue: backendValues.focus
+ text: backendValues.focus.valueToString
+ enabled: backendValues.focus.isAvailable
+ implicitWidth: 180
+ }
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Active focus on tab")
+ tooltip: qsTr("Holds whether the item wants to be in the tab focus chain.")
+ disabledState: !backendValues.activeFocusOnTab.isAvailable
+ }
+ SecondColumnLayout {
+ CheckBox {
+ backendValue: backendValues.activeFocusOnTab
+ text: backendValues.activeFocusOnTab.valueToString
+ enabled: backendValues.activeFocusOnTab.isAvailable
+ implicitWidth: 180
+ }
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Baseline offset")
+ tooltip: qsTr("Specifies the position of the item's baseline in local coordinates.")
+ disabledState: !backendValues.baselineOffset.isAvailable
+ }
+ SecondColumnLayout {
+ SpinBox {
+ sliderIndicatorVisible: true
+ backendValue: backendValues.baselineOffset
+ hasSlider: true
+ decimals: 0
+ minimumValue: -1000
+ maximumValue: 1000
+ Layout.preferredWidth: 140
+ enabled: backendValues.baselineOffset.isAvailable
+ }
+ ExpandingSpacer {
+ }
+ }
}
}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimatedImageSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimatedImageSpecifics.qml
new file mode 100644
index 0000000000..787e390cbd
--- /dev/null
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AnimatedImageSpecifics.qml
@@ -0,0 +1,95 @@
+/****************************************************************************
+**
+** Copyright (C) 2016 The Qt Company Ltd.
+** Contact: https://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 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 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** 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.
+**
+****************************************************************************/
+
+import QtQuick 2.1
+import HelperWidgets 2.0
+import QtQuick.Layouts 1.0
+
+Column {
+ anchors.left: parent.left
+ anchors.right: parent.right
+
+ ImageSpecifics {
+ }
+
+ Section {
+ anchors.left: parent.left
+ anchors.right: parent.right
+ caption: qsTr("Animated Image")
+
+ SectionLayout {
+ Label {
+ text: qsTr("Speed")
+ disabledState: !backendValues.speed.isAvailable
+ }
+ SecondColumnLayout {
+ SpinBox {
+ sliderIndicatorVisible: true
+ backendValue: backendValues.speed
+ hasSlider: true
+ decimals: 2
+ minimumValue: 0
+ maximumValue: 100
+ Layout.preferredWidth: 140
+ enabled: backendValues.speed.isAvailable
+ }
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Paused")
+ tooltip: qsTr("Holds whether the animated image is paused.")
+ disabledState: !backendValues.paused.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.paused.isAvailable
+ text: backendValues.paused.valueToString
+ backendValue: backendValues.paused
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
+
+ Label {
+ text: qsTr("Playing")
+ tooltip: qsTr("Holds whether the animated image is playing.")
+ disabledState: !backendValues.playing.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.playing.isAvailable
+ text: backendValues.playing.valueToString
+ backendValue: backendValues.playing
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
+ }
+ }
+}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/BorderImageSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/BorderImageSpecifics.qml
index 3d39d44e8f..362ba144c5 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/BorderImageSpecifics.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/BorderImageSpecifics.qml
@@ -124,7 +124,7 @@ Column {
}
Label {
- text: qsTr("Horizontal Fill mode")
+ text: qsTr("Horizontal Tile mode")
}
SecondColumnLayout {
@@ -138,7 +138,7 @@ Column {
}
Label {
- text: qsTr("Vertical Fill mode")
+ text: qsTr("Vertical Tile mode")
}
SecondColumnLayout {
@@ -186,6 +186,70 @@ Column {
}
}
+
+ Label {
+ text: qsTr("Mirror")
+ tooltip: qsTr("Specifies whether the image should be horizontally inverted.")
+ disabledState: !backendValues.mirror.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.mirror.isAvailable
+ text: backendValues.mirror.valueToString
+ backendValue: backendValues.mirror
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
+
+ Label {
+ text: qsTr("Smooth")
+ tooltip: qsTr("Specifies whether the image is smoothly filtered when scaled or transformed.")
+ disabledState: !backendValues.smooth.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.smooth.isAvailable
+ text: backendValues.smooth.valueToString
+ backendValue: backendValues.smooth
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
+
+ Label {
+ text: qsTr("Cache")
+ tooltip: qsTr("Specifies whether the image should be cached.")
+ disabledState: !backendValues.cache.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.cache.isAvailable
+ text: backendValues.cache.valueToString
+ backendValue: backendValues.cache
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
+
+ Label {
+ text: qsTr("Asynchronous")
+ tooltip: qsTr("Specifies that images on the local filesystem should be loaded asynchronously in a separate thread.")
+ disabledState: !backendValues.asynchronous.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.asynchronous.isAvailable
+ text: backendValues.asynchronous.valueToString
+ backendValue: backendValues.asynchronous
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
}
}
}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GridSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GridSpecifics.qml
index 37be5e5770..284849a415 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GridSpecifics.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GridSpecifics.qml
@@ -95,7 +95,32 @@ Column {
Layout.fillWidth: true
scope: "Qt"
}
+ }
+ Label {
+ text: qsTr("Horizontal item alignment")
+ }
+
+ SecondColumnLayout {
+ ComboBox {
+ model: ["AlignLeft", "AlignRight" ,"AlignHCenter"]
+ backendValue: backendValues.horizontalItemAlignment
+ Layout.fillWidth: true
+ scope: "Grid"
+ }
+ }
+
+ Label {
+ text: qsTr("Vertical item alignment")
+ }
+
+ SecondColumnLayout {
+ ComboBox {
+ model: ["AlignTop", "AlignBottom" ,"AlignVCenter"]
+ backendValue: backendValues.verticalItemAlignment
+ Layout.fillWidth: true
+ scope: "Grid"
+ }
}
Label {
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml
index 8f742f06e2..60b97a1179 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml
@@ -58,7 +58,7 @@ Column {
SecondColumnLayout {
ComboBox {
scope: "Image"
- model: ["Stretch", "PreserveAspectFit", "PreserveAspectCrop", "Tile", "TileVertically", "TileHorizontally"]
+ model: ["Stretch", "PreserveAspectFit", "PreserveAspectCrop", "Tile", "TileVertically", "TileHorizontally", "Pad"]
backendValue: backendValues.fillMode
implicitWidth: 180
Layout.fillWidth: true
@@ -105,6 +105,136 @@ Column {
ExpandingSpacer {
}
}
+
+ Label {
+ text: qsTr("Horizontal alignment")
+ }
+
+ SecondColumnLayout {
+ ComboBox {
+ scope: "Image"
+ model: ["AlignLeft", "AlignRight", "AlignHCenter"]
+ backendValue: backendValues.horizontalAlignment
+ implicitWidth: 180
+ Layout.fillWidth: true
+ }
+
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Vertical alignment")
+ }
+
+ SecondColumnLayout {
+ ComboBox {
+ scope: "Image"
+ model: ["AlignTop", "AlignBottom", "AlignVCenter"]
+ backendValue: backendValues.verticalAlignment
+ implicitWidth: 180
+ Layout.fillWidth: true
+ }
+
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Asynchronous")
+ tooltip: qsTr("Specifies that images on the local filesystem should be loaded asynchronously in a separate thread.")
+ disabledState: !backendValues.asynchronous.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.asynchronous.isAvailable
+ text: backendValues.asynchronous.valueToString
+ backendValue: backendValues.asynchronous
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
+
+ Label {
+ text: qsTr("Auto transform")
+ tooltip: qsTr("Specifies whether the image should automatically apply image transformation metadata such as EXIF orientation.")
+ disabledState: !backendValues.autoTransform.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.autoTransform.isAvailable
+ text: backendValues.autoTransform.valueToString
+ backendValue: backendValues.autoTransform
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
+
+ Label {
+ text: qsTr("Cache")
+ tooltip: qsTr("Specifies whether the image should be cached.")
+ disabledState: !backendValues.cache.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.cache.isAvailable
+ text: backendValues.cache.valueToString
+ backendValue: backendValues.cache
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
+
+ Label {
+ text: qsTr("Mipmap")
+ tooltip: qsTr("Specifies whether the image uses mipmap filtering when scaled or transformed.")
+ disabledState: !backendValues.mipmap.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.mipmap.isAvailable
+ text: backendValues.mipmap.valueToString
+ backendValue: backendValues.mipmap
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
+
+ Label {
+ text: qsTr("Mirror")
+ tooltip: qsTr("Specifies whether the image should be horizontally inverted.")
+ disabledState: !backendValues.mirror.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.mirror.isAvailable
+ text: backendValues.mirror.valueToString
+ backendValue: backendValues.mirror
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
+
+ Label {
+ text: qsTr("Smooth")
+ tooltip: qsTr("Specifies whether the image is smoothly filtered when scaled or transformed.")
+ disabledState: !backendValues.smooth.isAvailable
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ enabled: backendValues.smooth.isAvailable
+ text: backendValues.smooth.valueToString
+ backendValue: backendValues.smooth
+ implicitWidth: 180
+ }
+ ExpandingSpacer {}
+ }
}
}
}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/MouseAreaSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/MouseAreaSpecifics.qml
index 71ff0260ba..0ca7f3d888 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/MouseAreaSpecifics.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/MouseAreaSpecifics.qml
@@ -54,7 +54,7 @@ Column {
}
Label {
- text: qsTr("Hover Enabled")
+ text: qsTr("Hover enabled")
tooltip: qsTr("This property holds whether hover events are handled.")
}
@@ -68,6 +68,197 @@ Column {
ExpandingSpacer {
}
}
+
+ Label {
+ text: qsTr("Accepted buttons")
+ tooltip: qsTr("This property holds the mouse buttons that the mouse area reacts to.")
+ }
+
+ SecondColumnLayout {
+ ComboBox {
+ backendValue: backendValues.acceptedButtons
+ model: ["LeftButton", "RightButton", "MiddleButton", "BackButton", "ForwardButton", "AllButtons"]
+ Layout.fillWidth: true
+ scope: "Qt"
+ }
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Press and hold interval")
+ tooltip: qsTr("This property overrides the elapsed time in milliseconds before pressAndHold is emitted.")
+ }
+
+ SecondColumnLayout {
+ SpinBox {
+ backendValue: backendValues.pressAndHoldInterval
+ minimumValue: 0
+ maximumValue: 2000
+ decimals: 0
+ }
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Scroll gesture enabled")
+ tooltip: qsTr("This property controls whether this MouseArea responds to scroll gestures from non-mouse devices.")
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ Layout.fillWidth: true
+ backendValue: backendValues.scrollGestureEnabled
+ text: backendValues.scrollGestureEnabled.valueToString
+ }
+
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Cursor shape")
+ tooltip: qsTr("This property holds the cursor shape for this mouse area.")
+ }
+
+ SecondColumnLayout {
+ ComboBox {
+ backendValue: backendValues.cursorShape
+ model: ["ArrowCursor", "UpArrowCursor", "CrossCursor", "WaitCursor",
+ "IBeamCursor", "SizeVerCursor", "SizeHorCursor", "SizeBDiagCursor",
+ "SizeFDiagCursor", "SizeAllCursor", "BlankCursor", "SplitVCursor",
+ "SplitHCursor", "PointingHandCursor", "ForbiddenCursor", "WhatsThisCursor",
+ "BusyCursor", "OpenHandCursor", "ClosedHandCursor", "DragCopyCursor",
+ "DragMoveCursor", "DragLinkCursor"]
+ Layout.fillWidth: true
+ scope: "Qt"
+ }
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Prevent stealing")
+ tooltip: qsTr("This property controls whether the mouse events may be stolen from this MouseArea.")
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ Layout.fillWidth: true
+ backendValue: backendValues.preventStealing
+ text: backendValues.preventStealing.valueToString
+ }
+
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Propagate composed events")
+ tooltip: qsTr("This property controls whether composed mouse events will automatically propagate to other MouseAreas.")
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ Layout.fillWidth: true
+ backendValue: backendValues.propagateComposedEvents
+ text: backendValues.propagateComposedEvents.valueToString
+ }
+
+ ExpandingSpacer {
+ }
+ }
+ }
+ }
+
+ Section {
+ anchors.left: parent.left
+ anchors.right: parent.right
+ caption: qsTr("Drag")
+
+ SectionLayout {
+ Label {
+ text: qsTr("Target")
+ tooltip: qsTr("Sets the id of the item to drag.")
+ }
+ SecondColumnLayout {
+ ItemFilterComboBox {
+ typeFilter: "QtQuick.QtObject"
+ validator: RegExpValidator { regExp: /(^$|^[a-z_]\w*)/ }
+ backendValue: backendValues.drag_target
+ Layout.fillWidth: true
+ }
+
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Axis")
+ tooltip: qsTr("Specifies whether dragging can be done horizontally, vertically, or both.")
+ }
+ SecondColumnLayout {
+ ComboBox {
+ scope: "Drag"
+ model: ["XAxis", "YAxis", "XAndYAxis"]
+ backendValue: backendValues.drag_axis
+ Layout.fillWidth: true
+ }
+
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Filter children")
+ tooltip: qsTr("Specifies whether a drag overrides descendant MouseAreas.")
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ Layout.fillWidth: true
+ backendValue: backendValues.drag_filterChildren
+ text: backendValues.drag_filterChildren.valueToString
+ }
+
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Threshold")
+ tooltip: qsTr("Determines the threshold in pixels of when the drag operation should start.")
+ }
+
+ SecondColumnLayout {
+ SpinBox {
+ backendValue: backendValues.drag_threshold
+ minimumValue: 0
+ maximumValue: 5000
+ decimals: 0
+ }
+
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
+ text: qsTr("Smoothed")
+ tooltip: qsTr("If set to true, the target will be moved only after the drag operation has started.\n"
+ + "If set to false, the target will be moved straight to the current mouse position.")
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ Layout.fillWidth: true
+ backendValue: backendValues.drag_smoothed
+ text: backendValues.drag_smoothed.valueToString
+ }
+
+ ExpandingSpacer {
+ }
+ }
}
}
}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml
index cfd972b085..5c0e84d039 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml
@@ -114,6 +114,19 @@ Section {
}
Label {
+ visible: textInputSection.isTextInput
+ text: qsTr("Maximum length")
+ tooltip: qsTr("Sets the maximum permitted length of the text in the TextInput.")
+ }
+ SpinBox {
+ visible: textInputSection.isTextInput
+ Layout.fillWidth: true
+ backendValue: backendValues.maximumLength
+ minimumValue: 0
+ maximumValue: 32767
+ }
+
+ Label {
text: qsTr("Flags")
Layout.alignment: Qt.AlignTop
}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FlickableSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FlickableSection.qml
index 2b97df0646..11f46d29c5 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FlickableSection.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FlickableSection.qml
@@ -47,7 +47,7 @@ Section {
SecondColumnLayout {
ComboBox {
backendValue: backendValues.flickableDirection
- model: ["AutoFlickDirection", "HorizontalFlick", "VerticalFlick", "HorizontalAndVerticalFlick"]
+ model: ["AutoFlickDirection", "AutoFlickIfNeeded", "HorizontalFlick", "VerticalFlick", "HorizontalAndVerticalFlick"]
Layout.fillWidth: true
scope: "Flickable"
}
@@ -63,7 +63,7 @@ Section {
SecondColumnLayout {
ComboBox {
backendValue: backendValues.boundsBehavior
- model: ["StopAtBounds", "DragOverBounds", "DragAndOvershootBounds"]
+ model: ["StopAtBounds", "DragOverBounds", "OvershootBounds", "DragAndOvershootBounds"]
Layout.fillWidth: true
scope: "Flickable"
}
@@ -167,6 +167,23 @@ Section {
}
Label {
+ text: qsTr("Synchronous drag")
+ tooltip: qsTr("If set to true, then when the mouse or touchpoint moves far enough to begin dragging\n"
+ + "the content, the content will jump, such that the content pixel which was under the\n"
+ + "cursor or touchpoint when pressed remains under that point.")
+ }
+
+ SecondColumnLayout {
+ CheckBox {
+ Layout.fillWidth: true
+ backendValue: backendValues.synchronousDrag
+ text: backendValues.synchronousDrag.valueToString
+ }
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
text: qsTr("Content size")
}
@@ -247,6 +264,45 @@ Section {
}
Label {
+ text: qsTr("Origin")
+ }
+
+ SecondColumnLayout {
+ Label {
+ text: "X"
+ width: root.labelWidth
+ }
+
+ SpinBox {
+ backendValue: backendValues.originX
+ minimumValue: -8000
+ maximumValue: 8000
+ implicitWidth: root.spinBoxWidth
+ Layout.fillWidth: true
+ }
+
+ Item {
+ width: 4
+ height: 4
+ }
+
+ Label {
+ text: "Y"
+ width: root.labelWidth
+ }
+
+ SpinBox {
+ backendValue: backendValues.originY
+ minimumValue: -8000
+ maximumValue: 8000
+ implicitWidth: root.spinBoxWidth
+ Layout.fillWidth: true
+ }
+ ExpandingSpacer {
+ }
+ }
+
+ Label {
text: qsTr("Margins")
}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontSection.qml
index a97923a032..94a43424da 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontSection.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/FontSection.qml
@@ -68,9 +68,12 @@ Section {
text: qsTr("Font")
}
FontComboBox {
+ id: fontComboBox
backendValue: fontSection.fontFamily
Layout.fillWidth: true
width: 160
+ property string familyName: backendValue.value
+ onFamilyNameChanged: print(styleNamesForFamily(familyName))
}
Label {
@@ -151,6 +154,7 @@ Section {
italic: fontSection.italicStyle
underline: fontSection.underlineStyle
strikeout: fontSection.strikeoutStyle
+ enabled: !styleComboBox.styleSet
}
Label {
@@ -175,6 +179,21 @@ Section {
backendValue: getBackendValue("weight")
model: ["Normal", "Light", "ExtraLight", "Thin", "Medium", "DemiBold", "Bold", "ExtraBold", "Black"]
scope: "Font"
+ enabled: !styleComboBox.styleSet
+ }
+
+ Label {
+ text: qsTr("Style name")
+ toolTip: qsTr("Sets the font's style.")
+ }
+
+ ComboBox {
+ id: styleComboBox
+ property bool styleSet: backendValue.isInModel
+ Layout.fillWidth: true
+ backendValue: getBackendValue("styleName")
+ model: styleNamesForFamily(fontComboBox.familyName)
+ useString: true
}
Label {
@@ -257,5 +276,17 @@ Section {
"Latin script,\n it is merely a cosmetic feature. Setting the preferShaping property to false will disable all such features\nwhen they are not required, which will improve performance in most cases.")
}
}
+
+ Label {
+ text: qsTr("Hinting preference")
+ toolTip: qsTr("Sets the preferred hinting on the text.")
+ }
+
+ ComboBox {
+ Layout.fillWidth: true
+ backendValue: getBackendValue("hintingPreference")
+ model: ["PreferDefaultHinting", "PreferNoHinting", "PreferVerticalHinting", "PreferFullHinting"]
+ scope: "Font"
+ }
}
}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/StandardTextSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/StandardTextSection.qml
index 6ecc8d525c..6c5e6fde86 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/StandardTextSection.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/StandardTextSection.qml
@@ -61,7 +61,7 @@ Section {
Layout.fillWidth: true
backendValue: backendValues.wrapMode
scope: "Text"
- model: ["NoWrap", "WordWrap", "WrapAnywhere", "WrapAtWordBoundaryOrAnywhere"]
+ model: ["NoWrap", "WordWrap", "WrapAnywhere", "Wrap"]
}
Label {
@@ -78,6 +78,21 @@ Section {
}
Label {
+ visible: showElide
+ text: qsTr("Maximum line count")
+ tooltip: qsTr("Limits the number of lines that the text item will show.")
+ }
+
+ SpinBox {
+ visible: showElide
+ Layout.fillWidth: true
+ backendValue: backendValues.maximumLineCount
+ minimumValue: 0
+ maximumValue: 10000
+ decimals: 0
+ }
+
+ Label {
text: qsTr("Alignment")
}
@@ -124,6 +139,7 @@ Section {
toolTip: qsTr("Specifies how the font size of the displayed text is determined.")
}
ComboBox {
+ id: fontSizeMode
visible: showFontSizeMode
scope: "Text"
model: ["FixedSize", "HorizontalFit", "VerticalFit", "Fit"]
@@ -131,6 +147,48 @@ Section {
Layout.fillWidth: true
}
+ Label {
+ visible: showFontSizeMode
+ text: qsTr("Minimum size")
+ }
+ SecondColumnLayout {
+ visible: showFontSizeMode
+
+ SpinBox {
+ enabled: fontSizeMode.currentIndex !== 0
+ minimumValue: 0
+ maximumValue: 500
+ decimals: 0
+ backendValue: backendValues.minimumPixelSize
+ Layout.fillWidth: true
+ Layout.minimumWidth: 60
+ }
+ Label {
+ text: qsTr("Pixel")
+ tooltip: qsTr("Specifies the minimum font pixel size of scaled text.")
+ width: 42
+ }
+
+ Item {
+ width: 4
+ height: 4
+ }
+
+ SpinBox {
+ enabled: fontSizeMode.currentIndex !== 0
+ minimumValue: 0
+ maximumValue: 500
+ decimals: 0
+ backendValue: backendValues.minimumPointSize
+ Layout.fillWidth: true
+ Layout.minimumWidth: 60
+ }
+ Label {
+ text: qsTr("Point")
+ tooltip: qsTr("Specifies the minimum font point size of scaled text.")
+ width: 42
+ }
+ }
Label {
visible: showLineHeight
@@ -148,5 +206,17 @@ Section {
stepSize: 0.1
}
+ Label {
+ visible: showLineHeight
+ text: qsTr("Line height mode")
+ toolTip: qsTr("Determines how the line height is specified.")
+ }
+ ComboBox {
+ visible: showLineHeight
+ scope: "Text"
+ model: ["ProportionalHeight", "FixedHeight"]
+ backendValue: backendValues.lineHeightMode
+ Layout.fillWidth: true
+ }
}
}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Constants.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Constants.qml
index 3d692af671..74edf9ccee 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Constants.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/Constants.qml
@@ -26,98 +26,4 @@
pragma Singleton
import QtQuick 2.10
-QtObject {
- readonly property int width: 1920
- readonly property int height: 1080
- readonly property FontLoader mySystemFont: FontLoader {
- name: "Arial"
- }
- readonly property FontLoader controlIcons: FontLoader {
- source: "icons.ttf"
- }
-
- readonly property string actionIcon: "\u0021"
- readonly property string actionIconBinding: "\u0022"
- readonly property string addColumnAfter: "\u0023"
- readonly property string addColumnBefore: "\u0024"
- readonly property string addFile: "\u0025"
- readonly property string addRowAfter: "\u0026"
- readonly property string addRowBefore: "\u0027"
- readonly property string addTable: "\u0028"
- readonly property string alignBottom: "\u0029"
- readonly property string alignCenterHorizontal: "\u002A"
- readonly property string alignCenterVertical: "\u002B"
- readonly property string alignLeft: "\u002C"
- readonly property string alignRight: "\u002D"
- readonly property string alignTo: "\u002E"
- readonly property string alignTop: "\u002F"
- readonly property string anchorBaseline: "\u0030"
- readonly property string anchorBottom: "\u0031"
- readonly property string anchorFill: "\u0032"
- readonly property string anchorLeft: "\u0033"
- readonly property string anchorRight: "\u0034"
- readonly property string anchorTop: "\u0035"
- readonly property string annotationBubble: "\u0036"
- readonly property string annotationDecal: "\u0037"
- readonly property string centerHorizontal: "\u0038"
- readonly property string centerVertical: "\u0039"
- readonly property string closeCross: "\u003A"
- readonly property string deleteColumn: "\u003B"
- readonly property string deleteRow: "\u003C"
- readonly property string deleteTable: "\u003D"
- readonly property string distributeBottom: "\u003E"
- readonly property string distributeCenterHorizontal: "\u003F"
- readonly property string distributeCenterVertical: "\u0040"
- readonly property string distributeLeft: "\u0041"
- readonly property string distributeOriginBottomRight: "\u0042"
- readonly property string distributeOriginCenter: "\u0043"
- readonly property string distributeOriginNone: "\u0044"
- readonly property string distributeOriginTopLeft: "\u0045"
- readonly property string distributeRight: "\u0046"
- readonly property string distributeSpacingHorizontal: "\u0047"
- readonly property string distributeSpacingVertical: "\u0048"
- readonly property string distributeTop: "\u0049"
- readonly property string edit: "\u004A"
- readonly property string fontStyleBold: "\u004B"
- readonly property string fontStyleItalic: "\u004C"
- readonly property string fontStyleStrikethrough: "\u004D"
- readonly property string fontStyleUnderline: "\u004E"
- readonly property string mergeCells: "\u004F"
- readonly property string redo: "\u0050"
- readonly property string splitColumns: "\u0051"
- readonly property string splitRows: "\u0052"
- readonly property string testIcon: "\u0053"
- readonly property string textAlignBottom: "\u0054"
- readonly property string textAlignCenter: "\u0055"
- readonly property string textAlignLeft: "\u0056"
- readonly property string textAlignMiddle: "\u0057"
- readonly property string textAlignRight: "\u0058"
- readonly property string textAlignTop: "\u0059"
- readonly property string textBulletList: "\u005A"
- readonly property string textFullJustification: "\u005B"
- readonly property string textNumberedList: "\u005C"
- readonly property string tickIcon: "\u005D"
- readonly property string triState: "\u005E"
- readonly property string undo: "\u005F"
- readonly property string upDownIcon: "\u0060"
- readonly property string upDownSquare2: "\u0061"
-
- readonly property font iconFont: Qt.font({
- "family": controlIcons.name,
- "pixelSize": 12
- })
-
- readonly property font font: Qt.font({
- "family": mySystemFont.name,
- "pointSize": Qt.application.font.pixelSize
- })
-
- readonly property font largeFont: Qt.font({
- "family": mySystemFont.name,
- "pointSize": Qt.application.font.pixelSize * 1.6
- })
-
- readonly property color backgroundColor: "#c2c2c2"
-
- readonly property bool showActionIndicatorBackground: false
-}
+InternalConstants {}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/InternalConstants.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/InternalConstants.qml
new file mode 100644
index 0000000000..4d45032eae
--- /dev/null
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/InternalConstants.qml
@@ -0,0 +1,131 @@
+/****************************************************************************
+**
+** Copyright (C) 2020 The Qt Company Ltd.
+** Contact: https://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 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 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** 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.
+**
+****************************************************************************/
+
+import QtQuick 2.10
+
+QtObject {
+ readonly property int width: 1920
+ readonly property int height: 1080
+ readonly property FontLoader mySystemFont: FontLoader {
+ name: "Arial"
+ }
+ readonly property FontLoader controlIcons: FontLoader {
+ source: "icons.ttf"
+ }
+
+ objectName: "internalConstantsObject"
+
+ readonly property string actionIcon: "\u0021"
+ readonly property string actionIconBinding: "\u0022"
+ readonly property string addColumnAfter: "\u0023"
+ readonly property string addColumnBefore: "\u0024"
+ readonly property string addFile: "\u0025"
+ readonly property string addRowAfter: "\u0026"
+ readonly property string addRowBefore: "\u0027"
+ readonly property string addTable: "\u0028"
+ readonly property string adsClose: "\u0029"
+ readonly property string adsDetach: "\u002A"
+ readonly property string adsDropDown: "\u002B"
+ readonly property string alignBottom: "\u002C"
+ readonly property string alignCenterHorizontal: "\u002D"
+ readonly property string alignCenterVertical: "\u002E"
+ readonly property string alignLeft: "\u002F"
+ readonly property string alignRight: "\u0030"
+ readonly property string alignTo: "\u0031"
+ readonly property string alignTop: "\u0032"
+ readonly property string anchorBaseline: "\u0033"
+ readonly property string anchorBottom: "\u0034"
+ readonly property string anchorFill: "\u0035"
+ readonly property string anchorLeft: "\u0036"
+ readonly property string anchorRight: "\u0037"
+ readonly property string anchorTop: "\u0038"
+ readonly property string annotationBubble: "\u0039"
+ readonly property string annotationDecal: "\u003A"
+ readonly property string centerHorizontal: "\u003B"
+ readonly property string centerVertical: "\u003C"
+ readonly property string closeCross: "\u003D"
+ readonly property string decisionNode: "\u003E"
+ readonly property string deleteColumn: "\u003F"
+ readonly property string deleteRow: "\u0040"
+ readonly property string deleteTable: "\u0041"
+ readonly property string detach: "\u0042"
+ readonly property string distributeBottom: "\u0043"
+ readonly property string distributeCenterHorizontal: "\u0044"
+ readonly property string distributeCenterVertical: "\u0045"
+ readonly property string distributeLeft: "\u0046"
+ readonly property string distributeOriginBottomRight: "\u0047"
+ readonly property string distributeOriginCenter: "\u0048"
+ readonly property string distributeOriginNone: "\u0049"
+ readonly property string distributeOriginTopLeft: "\u004A"
+ readonly property string distributeRight: "\u004B"
+ readonly property string distributeSpacingHorizontal: "\u004C"
+ readonly property string distributeSpacingVertical: "\u004D"
+ readonly property string distributeTop: "\u004E"
+ readonly property string edit: "\u004F"
+ readonly property string fontStyleBold: "\u0050"
+ readonly property string fontStyleItalic: "\u0051"
+ readonly property string fontStyleStrikethrough: "\u0052"
+ readonly property string fontStyleUnderline: "\u0053"
+ readonly property string mergeCells: "\u0054"
+ readonly property string redo: "\u0055"
+ readonly property string splitColumns: "\u0056"
+ readonly property string splitRows: "\u0057"
+ readonly property string startNode: "\u0058"
+ readonly property string testIcon: "\u0059"
+ readonly property string textAlignBottom: "\u005A"
+ readonly property string textAlignCenter: "\u005B"
+ readonly property string textAlignLeft: "\u005C"
+ readonly property string textAlignMiddle: "\u005D"
+ readonly property string textAlignRight: "\u005E"
+ readonly property string textAlignTop: "\u005F"
+ readonly property string textBulletList: "\u0060"
+ readonly property string textFullJustification: "\u0061"
+ readonly property string textNumberedList: "\u0062"
+ readonly property string tickIcon: "\u0063"
+ readonly property string triState: "\u0064"
+ readonly property string undo: "\u0065"
+ readonly property string upDownIcon: "\u0066"
+ readonly property string upDownSquare2: "\u0067"
+ readonly property string wildcard: "\u0068"
+
+ readonly property font iconFont: Qt.font({
+ "family": controlIcons.name,
+ "pixelSize": 12
+ })
+
+ readonly property font font: Qt.font({
+ "family": mySystemFont.name,
+ "pointSize": Qt.application.font.pixelSize
+ })
+
+ readonly property font largeFont: Qt.font({
+ "family": mySystemFont.name,
+ "pointSize": Qt.application.font.pixelSize * 1.6
+ })
+
+ readonly property color backgroundColor: "#c2c2c2"
+
+ readonly property bool showActionIndicatorBackground: false
+}
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/icons.ttf b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/icons.ttf
index d65b065195..9e3ed42406 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/icons.ttf
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/icons.ttf
Binary files differ
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/qmldir b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/qmldir
index b768fe63a2..4f689f9f63 100755
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/qmldir
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/qmldir
@@ -1,2 +1,4 @@
singleton Values 1.0 Values.qml
singleton Constants 1.0 Constants.qml
+InternalConstants 1.0 InternalConstants.qml
+