Skip to content
Snippets Groups Projects
Commit 1e09e55b authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.PropertyEditor: Color coding in the ID field

parent a24d2337
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ QWidget { ...@@ -8,6 +8,7 @@ QWidget {
property alias enabled: lineEdit.enabled property alias enabled: lineEdit.enabled
property var baseStateFlag property var baseStateFlag
property alias text: lineEditWidget.text property alias text: lineEditWidget.text
property alias readOnly: lineEditWidget.readOnly
minimumHeight: 24; minimumHeight: 24;
......
...@@ -22,6 +22,10 @@ GroupBox { ...@@ -22,6 +22,10 @@ GroupBox {
} }
} }
QWidget { QWidget {
property var isEnabled: isBaseState
onIsEnabledChanged: idLineEdit.setStyleSheet("color: "+(isEnabled?scheme.defaultColor:scheme.disabledColor));
ColorScheme{ id:scheme }
layout: HorizontalLayout { layout: HorizontalLayout {
Label { Label {
text: "Id"; text: "Id";
......
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