forked from qt-creator/qt-creator
QmlDesigner: Extend QUL Metadata list
Change-Id: I2dbd3a4325ced09fdcf3667887ec2e67ccf59252 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -125,6 +125,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("Horizontal tile mode")
|
text: qsTr("Horizontal tile mode")
|
||||||
|
disabledState: !backendValues.horizontalTileMode.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
SecondColumnLayout {
|
SecondColumnLayout {
|
||||||
@@ -134,11 +135,13 @@ Column {
|
|||||||
implicitWidth: 180
|
implicitWidth: 180
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
scope: "BorderImage"
|
scope: "BorderImage"
|
||||||
|
enabled: backendValue.isAvailable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("Vertical tile mode")
|
text: qsTr("Vertical tile mode")
|
||||||
|
disabledState: !backendValues.verticalTileMode.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
SecondColumnLayout {
|
SecondColumnLayout {
|
||||||
@@ -148,37 +151,42 @@ Column {
|
|||||||
implicitWidth: 180
|
implicitWidth: 180
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
scope: "BorderImage"
|
scope: "BorderImage"
|
||||||
|
enabled: backendValue.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("Source size")
|
text: qsTr("Source size")
|
||||||
|
disabledState: !backendValues.sourceSize.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
SecondColumnLayout {
|
SecondColumnLayout {
|
||||||
Label {
|
Label {
|
||||||
text: "W"
|
text: "W"
|
||||||
width: 12
|
width: 12
|
||||||
|
disabledStateSoft: !backendValues.sourceSize_width.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
SpinBox {
|
SpinBox {
|
||||||
backendValue: backendValues.sourceSize_width
|
backendValue: backendValues.sourceSize_width
|
||||||
minimumValue: -2000
|
minimumValue: -2000
|
||||||
maximumValue: 2000
|
maximumValue: 2000
|
||||||
|
enabled: backendValue.isAvailable
|
||||||
decimals: 0
|
decimals: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "H"
|
text: "H"
|
||||||
width: 12
|
width: 12
|
||||||
|
disabledStateSoft: !backendValues.sourceSize_height.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
SpinBox {
|
SpinBox {
|
||||||
backendValue: backendValues.sourceSize_height
|
backendValue: backendValues.sourceSize_height
|
||||||
minimumValue: -2000
|
minimumValue: -2000
|
||||||
maximumValue: 2000
|
maximumValue: 2000
|
||||||
|
enabled: backendValue.isAvailable
|
||||||
decimals: 0
|
decimals: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -27,7 +27,6 @@ VersionData {
|
|||||||
name: "QUL 1.4"
|
name: "QUL 1.4"
|
||||||
|
|
||||||
bannedItems: ["QtQuick.AnimatedImage",
|
bannedItems: ["QtQuick.AnimatedImage",
|
||||||
"QtQuick.BorderImage",
|
|
||||||
"QtQuick.FocusScope",
|
"QtQuick.FocusScope",
|
||||||
"QtQuick.TextInput",
|
"QtQuick.TextInput",
|
||||||
"QtQuick.TextEdit",
|
"QtQuick.TextEdit",
|
||||||
@@ -104,6 +103,12 @@ VersionData {
|
|||||||
"sourceSize", "smooth"]
|
"sourceSize", "smooth"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QtQuick.BorderImage {
|
||||||
|
bannedProperties: ["asynchronous", "cache", "currentFrame", "frameCount",
|
||||||
|
"horizontalTileMode", "mirror", "progress", "smooth", "sourceSize",
|
||||||
|
"status", "verticalTileMode"]
|
||||||
|
}
|
||||||
|
|
||||||
QtQuick.Text {
|
QtQuick.Text {
|
||||||
allowChildren: false
|
allowChildren: false
|
||||||
allowedProperties: ["rotation", "scale", "transformOrigin"]
|
allowedProperties: ["rotation", "scale", "transformOrigin"]
|
||||||
|
Reference in New Issue
Block a user