Browse Source

- Improve layout of the MemoryDump, CallData list.

- Bug fix: top right debug button.
cl-refactor
yann300 10 years ago
parent
commit
15a921ff6e
  1. 18
      mix/qml/ItemDelegateDataDump.qml
  2. 10
      mix/qml/StatusPane.qml

18
mix/qml/ItemDelegateDataDump.qml

@ -20,29 +20,33 @@ Rectangle {
Layout.maximumWidth: 35
Layout.minimumHeight: parent.height
Text {
anchors.centerIn: parent
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 3
font.family: "monospace"
font.bold: true
color: "#4a4a4a"
text: modelData[0]
font.pointSize: 9;
font.pointSize: 8;
}
}
Rectangle
{
Layout.fillWidth: true
Layout.minimumWidth: 90
Layout.preferredWidth: 90
Layout.maximumWidth: 90
Layout.minimumWidth: 110
Layout.preferredWidth: 110
Layout.maximumWidth: 110
Layout.minimumHeight: parent.height
Text {
font.family: "monospace"
font.bold: true
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: 4
color: "#4a4a4a"
text: modelData[1]
font.pointSize: 9
font.pointSize: 8
}
}
@ -57,7 +61,7 @@ Rectangle {
font.family: "monospace"
color: "#4a4a4a"
text: modelData[2]
font.pointSize: 9
font.pointSize: 8
}
}
}

10
mix/qml/StatusPane.qml

@ -14,6 +14,7 @@ Rectangle {
status.state = "";
status.text = qsTr("Compile without errors.");
logslink.visible = false;
debugImg.state = "active";
}
else
{
@ -21,6 +22,7 @@ Rectangle {
var errorInfo = ErrorLocationFormater.extractErrorInfo(statusPane.result.compilerMessage, true);
status.text = errorInfo.errorLocation + " " + errorInfo.errorDetail;
logslink.visible = true;
debugImg.state = "";
}
debugRunActionIcon.enabled = statusPane.result.successful;
}
@ -96,11 +98,17 @@ Rectangle {
Button
{
anchors.right: parent.right
anchors.rightMargin: 7
anchors.rightMargin: 9
anchors.verticalCenter: parent.verticalCenter
id: debugImg
iconSource: "qrc:/qml/img/bugiconinactive.png"
action: debugRunActionIcon
states: [
State{
name: "active"
PropertyChanges { target: debugImg; iconSource: "qrc:/qml/img/bugiconactive.png"}
}
]
}
Action {
id: debugRunActionIcon

Loading…
Cancel
Save