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

10
mix/qml/StatusPane.qml

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

Loading…
Cancel
Save