forked from qt-creator/qt-creator
QmlDesigner.propertyEditor: fixing color coding for LineEdit
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user