Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,8 @@ QWidget { ...@@ -44,6 +44,8 @@ QWidget {
property bool slider: true property bool slider: true
property alias alignment: label.alignment property alias alignment: label.alignment
property bool editorEnabled: true
layout: HorizontalLayout { layout: HorizontalLayout {
Label { Label {
id: label id: label
...@@ -53,6 +55,7 @@ QWidget { ...@@ -53,6 +55,7 @@ QWidget {
} }
SpinBox { SpinBox {
enabled: editorEnabled
backendValue: (intEditor.backendValue === undefined || backendValue: (intEditor.backendValue === undefined ||
intEditor.backendValue === null) intEditor.backendValue === null)
? null : intEditor.backendValue; ? null : intEditor.backendValue;
...@@ -73,6 +76,7 @@ QWidget { ...@@ -73,6 +76,7 @@ QWidget {
id: sliderWidget id: sliderWidget
QSlider { QSlider {
id: intSlider id: intSlider
enabled: editorEnabled
y: sliderWidget.height / 2 - 12 y: sliderWidget.height / 2 - 12
width: sliderWidget.width width: sliderWidget.width
height: 24 height: 24
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment