aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml
index 60b97a1179..864dd51ceb 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ImageSpecifics.qml
@@ -70,12 +70,14 @@ Column {
Label {
text: qsTr("Source size")
+ disabledState: !backendValues.sourceSize.isAvailable
}
SecondColumnLayout {
Label {
text: "W"
width: 12
+ disabledState: !backendValues.sourceSize_width.isAvailable
}
SpinBox {
@@ -83,6 +85,7 @@ Column {
minimumValue: 0
maximumValue: 8192
decimals: 0
+ enabled: backendValue.isAvailable
}
Item {
@@ -93,6 +96,7 @@ Column {
Label {
text: "H"
width: 12
+ disabledState: !backendValues.sourceSize_height.isAvailable
}
SpinBox {
@@ -100,6 +104,7 @@ Column {
minimumValue: 0
maximumValue: 8192
decimals: 0
+ enabled: backendValue.isAvailable
}
ExpandingSpacer {