Commit a8c154b8 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.PropertyEditor: proper disabling of IntEditor



We do not want to "disable" the lable.

Change-Id: I6d7c42458d19d05e0934ac63c70198798c8aec8b
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent 37fb8fa0
......@@ -44,6 +44,8 @@ QWidget {
property bool slider: true
property alias alignment: label.alignment
property bool editorEnabled: true
layout: HorizontalLayout {
Label {
id: label
......@@ -53,6 +55,7 @@ QWidget {
}
SpinBox {
enabled: editorEnabled
backendValue: (intEditor.backendValue === undefined ||
intEditor.backendValue === null)
? null : intEditor.backendValue;
......@@ -73,6 +76,7 @@ QWidget {
id: sliderWidget
QSlider {
id: intSlider
enabled: editorEnabled
y: sliderWidget.height / 2 - 12
width: sliderWidget.width
height: 24
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment