diff options
author | Christiaan Janssen <[email protected]> | 2010-02-26 17:24:36 +0100 |
---|---|---|
committer | Christiaan Janssen <[email protected]> | 2010-02-26 17:39:23 +0100 |
commit | 1e09e55bc3fd466ba03decfe956e64d1c819ee99 (patch) | |
tree | 072dcd1deb187731ef3d868468a4861c13368ae2 | |
parent | a24d233758ac8825e1407bb27ee4e029dc988143 (diff) |
QmlDesigner.PropertyEditor: Color coding in the ID field
-rw-r--r-- | share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml | 1 | ||||
-rw-r--r-- | share/qtcreator/qmldesigner/propertyeditor/Qt/Type.qml | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml index 40c3040e925..02535b446f5 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml @@ -8,6 +8,7 @@ QWidget { property alias enabled: lineEdit.enabled property var baseStateFlag property alias text: lineEditWidget.text + property alias readOnly: lineEditWidget.readOnly minimumHeight: 24; diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/Type.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/Type.qml index ca298ba57cd..e5fbfd10e1a 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/Type.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/Type.qml @@ -22,6 +22,10 @@ GroupBox { } } QWidget { + property var isEnabled: isBaseState + onIsEnabledChanged: idLineEdit.setStyleSheet("color: "+(isEnabled?scheme.defaultColor:scheme.disabledColor)); + ColorScheme{ id:scheme } + layout: HorizontalLayout { Label { text: "Id"; |