Browse Source

add warning level

cl-refactor
yann300 10 years ago
parent
commit
47d7f571c3
  1. 6
      mix/qml/LogsPane.qml
  2. 13
      mix/qml/StatusPane.qml

6
mix/qml/LogsPane.qml

@ -290,9 +290,11 @@ Rectangle
font.pointSize: Style.absoluteSize(-1) font.pointSize: Style.absoluteSize(-1)
color: { color: {
if (proxyModel.get(styleData.row).level === "error") if (proxyModel.get(styleData.row).level === "error")
return "red" return "red";
else if (proxyModel.get(styleData.row).level === "warning")
return "orange";
else else
return "#808080" return "#808080";
} }
} }
} }

13
mix/qml/StatusPane.qml

@ -38,7 +38,7 @@ Rectangle {
function warningMessage(text, type) function warningMessage(text, type)
{ {
status.state = ""; status.state = "warning";
status.text = text status.text = text
logPane.push("warning", type, text); logPane.push("warning", type, text);
} }
@ -153,6 +153,17 @@ Rectangle {
target: statusContainer target: statusContainer
color: "#fffcd5" color: "#fffcd5"
} }
},
State {
name: "warning"
PropertyChanges {
target: status
color: "orange"
}
PropertyChanges {
target: statusContainer
color: "#fffcd5"
}
} }
] ]
onTextChanged: onTextChanged:

Loading…
Cancel
Save