Fix all ids that start with uppercase letters as this is no

longer allowed.
This commit is contained in:
Bea Lam
2010-02-03 15:41:08 +10:00
parent f915c68281
commit c0e85146a0
2 changed files with 9 additions and 9 deletions

View File

@@ -58,7 +58,7 @@ Rectangle {
spacing: 4 spacing: 4
Repeater { Repeater {
model: statesEditorModel model: statesEditorModel
delegate: Delegate delegate: delegate
} }
} }
Loader { Loader {
@@ -81,14 +81,14 @@ Rectangle {
} }
Component { Component {
id: Delegate id: delegate
Item { Item {
id: container id: container
width: Math.max(img.width, txt.width+removeState.width+2,stateNameEditor.width) + 4 width: Math.max(img.width, txt.width+removeState.width+2,stateNameEditor.width) + 4
height: img.height + txt.height + 4 height: img.height + txt.height + 4
Rectangle { Rectangle {
id: Highlight id: highlight
anchors.fill: parent anchors.fill: parent
color: "#0303e0" color: "#0303e0"
radius: 4 radius: 4
@@ -152,7 +152,7 @@ Rectangle {
Rectangle { Rectangle {
width: parent.width - 4; width: parent.width - 4;
height:2 height:2
color:(root.currentStateIndex==index?Highlight.color:root.color); color:(root.currentStateIndex==index?highlight.color:root.color);
anchors.centerIn:parent anchors.centerIn:parent
} }
@@ -237,7 +237,7 @@ Rectangle {
} }
MouseRegion { MouseRegion {
id: AbsorbAllClicks id: absorbAllClicks
anchors.fill:parent anchors.fill:parent
} }
Text { Text {

View File

@@ -2,7 +2,7 @@ import Qt 4.6
Item { Item {
height: 100 height: 100
id: Root id: root
signal engineClicked(int id) signal engineClicked(int id)
signal refreshEngines() signal refreshEngines()
@@ -13,18 +13,18 @@ Item {
Item { Item {
width: 100; height: 100; width: 100; height: 100;
Image { Image {
id: EngineIcon; id: engineIcon;
source: "qrc:/engine.png" source: "qrc:/engine.png"
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
Text { Text {
anchors.top: EngineIcon.bottom; anchors.top: engineIcon.bottom;
text: modelData.name + "(" + modelData.engineId + ")" text: modelData.name + "(" + modelData.engineId + ")"
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
MouseRegion { MouseRegion {
anchors.fill: parent anchors.fill: parent
onClicked: Root.engineClicked(modelData.engineId); onClicked: root.engineClicked(modelData.engineId);
} }
} }
} }