QmlDesigner.propertyEditor: fixing color coding for LineEdit

This commit is contained in:
Thomas Hartmann
2010-04-16 11:28:37 +02:00
parent 6c8e14173a
commit d87471af56

View File

@@ -21,6 +21,16 @@ QWidget {
evaluate();
}
property bool isInModel: backendValue.isInModel;
onIsInModelChanged: {
evaluate();
}
property bool isInSubState: backendValue.isInSubState;
onIsInSubStateChanged: {
evaluate();
}
function evaluate() {
if (!enabled) {
lineEditWidget.setStyleSheet("color: "+scheme.disabledColor);
@@ -42,6 +52,7 @@ QWidget {
ColorScheme { id:scheme; }
QLineEdit {
y: 2
id: lineEditWidget
styleSheet: "QLineEdit { padding-left: 32; }"
width: lineEdit.width
@@ -65,7 +76,7 @@ QWidget {
}
ExtendedFunctionButton {
backendValue: lineEdit.backendValue
y: 4
y: 6
x: 0
visible: lineEdit.enabled
}