Browse Source

UI changes on status panel

cl-refactor
yann300 10 years ago
parent
commit
3de1ab95b0
  1. 44
      mix/qml/StatusPane.qml

44
mix/qml/StatusPane.qml

@ -187,25 +187,32 @@ Rectangle {
else else
width = undefined width = undefined
} }
}
Button Button
{ {
anchors.fill: parent anchors.fill: parent
id: toolTip id: toolTip
action: toolTipInfo action: toolTipInfo
text: "" text: ""
z: 3; z: 3;
style: style:
ButtonStyle { ButtonStyle {
background:Rectangle { background:Rectangle {
color: "transparent" color: "transparent"
}
} }
MouseArea { }
anchors.fill: parent MouseArea {
onClicked: { anchors.fill: parent
onClicked: {
var globalCoord = goToLineBtn.mapToItem(statusContainer, 0, 0);
if (mouseX > globalCoord.x
&& mouseX < globalCoord.x + goToLineBtn.width
&& mouseY > globalCoord.y
&& mouseY < globalCoord.y + goToLineBtn.height)
goToCompilationError.trigger(goToLineBtn);
else
logsContainer.toggle(); logsContainer.toggle();
}
} }
} }
} }
@ -245,8 +252,8 @@ Rectangle {
height: 30 height: 30
width: 30 width: 30
sourceSize.width: 30 sourceSize.width: 30
sourceSize.height: 30 sourceSize.height: 30
anchors.centerIn: parent anchors.centerIn: parent
} }
} }
} }
@ -335,7 +342,6 @@ Rectangle {
function move() function move()
{ {
var statusGlobalCoord = status.mapToItem(null, 0, 0); var statusGlobalCoord = status.mapToItem(null, 0, 0);
console.log("ddd " + statusGlobalCoord.x);
logsContainer.x = statusGlobalCoord.x - logPane.contentXPos logsContainer.x = statusGlobalCoord.x - logPane.contentXPos
logsShadow.x = statusGlobalCoord.x - logPane.contentXPos logsShadow.x = statusGlobalCoord.x - logPane.contentXPos
logsShadow.z = 1 logsShadow.z = 1

Loading…
Cancel
Save