From 1e09e55bc3fd466ba03decfe956e64d1c819ee99 Mon Sep 17 00:00:00 2001 From: Christiaan Janssen <christiaan.janssen@nokia.com> Date: Fri, 26 Feb 2010 17:24:36 +0100 Subject: [PATCH] QmlDesigner.PropertyEditor: Color coding in the ID field --- share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml | 1 + share/qtcreator/qmldesigner/propertyeditor/Qt/Type.qml | 4 ++++ 2 files changed, 5 insertions(+) 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"; -- GitLab