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

QmlDesigner.propertyEditor: show expressions as tooltips

Expressions are now shown as a tooltip if an expression is set
parent a98a6d05
......@@ -80,6 +80,7 @@ QWidget { //This is a special doubleSpinBox that does color coding for states
decimals: 1;
keyboardTracking: false;
enabled: !backendValue.isBound && doubleSpinBox.enabled;
toolTip: backendValue.isBound ? backendValue.expression : ""
property bool readingFromBackend: false;
property real valueFromBackend: doubleSpinBox.backendValue.value;
......
......@@ -57,6 +57,7 @@ QWidget {
styleSheet: "QLineEdit { padding-left: 32; }"
width: lineEdit.width
height: lineEdit.height
toolTip: backendValue.isBound ? backendValue.expression : ""
property string valueFromBackend: (backendValue === undefined || backendValue.value === undefined) ? "" : backendValue.value;
......
......@@ -65,6 +65,7 @@ QWidget { //This is a special spinBox that does color coding for states
spacing: 4
QSpinBox {
property alias backendValue: spinBox.backendValue
toolTip: backendValue.isBound ? backendValue.expression : ""
enabled: !backendValue.isBound && spinBox.enabled;
......
Markdown is supported
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