|
@ -187,6 +187,7 @@ Rectangle { |
|
|
else |
|
|
else |
|
|
width = undefined |
|
|
width = undefined |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
Button |
|
|
Button |
|
|
{ |
|
|
{ |
|
@ -204,11 +205,17 @@ Rectangle { |
|
|
MouseArea { |
|
|
MouseArea { |
|
|
anchors.fill: parent |
|
|
anchors.fill: parent |
|
|
onClicked: { |
|
|
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(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Rectangle |
|
|
Rectangle |
|
|
{ |
|
|
{ |
|
@ -297,14 +304,17 @@ Rectangle { |
|
|
{ |
|
|
{ |
|
|
if (logsContainer.state === "opened") |
|
|
if (logsContainer.state === "opened") |
|
|
{ |
|
|
{ |
|
|
|
|
|
statusContainer.visible = true |
|
|
logsContainer.state = "closed" |
|
|
logsContainer.state = "closed" |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
|
|
|
statusContainer.visible = false |
|
|
logsContainer.state = "opened"; |
|
|
logsContainer.state = "opened"; |
|
|
logsContainer.focus = true; |
|
|
logsContainer.focus = true; |
|
|
forceActiveFocus(); |
|
|
forceActiveFocus(); |
|
|
calCoord(); |
|
|
calCoord() |
|
|
|
|
|
move() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -317,20 +327,29 @@ Rectangle { |
|
|
|
|
|
|
|
|
function calCoord() |
|
|
function calCoord() |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (!logsContainer.parent.parent) |
|
|
|
|
|
return |
|
|
var top = logsContainer; |
|
|
var top = logsContainer; |
|
|
while (top.parent) |
|
|
while (top.parent) |
|
|
top = top.parent |
|
|
top = top.parent |
|
|
var coordinates = logsContainer.mapToItem(top, 0, 0); |
|
|
var coordinates = logsContainer.mapToItem(top, 0, 0); |
|
|
logsContainer.parent = top; |
|
|
logsContainer.parent = top; |
|
|
logsShadow.parent = top; |
|
|
logsShadow.parent = top; |
|
|
logsContainer.x = status.x + statusContainer.x - logStyle.generic.layout.dateWidth - logStyle.generic.layout.typeWidth + 70 |
|
|
top.onWidthChanged.connect(move) |
|
|
logsShadow.x = status.x + statusContainer.x - logStyle.generic.layout.dateWidth - logStyle.generic.layout.typeWidth + 70; |
|
|
top.onHeightChanged.connect(move) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function move() |
|
|
|
|
|
{ |
|
|
|
|
|
var statusGlobalCoord = status.mapToItem(null, 0, 0); |
|
|
|
|
|
logsContainer.x = statusGlobalCoord.x - logPane.contentXPos |
|
|
|
|
|
logsShadow.x = statusGlobalCoord.x - logPane.contentXPos |
|
|
logsShadow.z = 1 |
|
|
logsShadow.z = 1 |
|
|
logsContainer.z = 2 |
|
|
logsContainer.z = 2 |
|
|
if (Qt.platform.os === "osx") |
|
|
if (Qt.platform.os === "osx") |
|
|
{ |
|
|
{ |
|
|
logsContainer.y = statusContainer.y; |
|
|
logsContainer.y = statusGlobalCoord.y; |
|
|
logsShadow.y = statusContainer.y; |
|
|
logsShadow.y = statusGlobalCoord.y; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -341,6 +360,10 @@ Rectangle { |
|
|
LogsPane |
|
|
LogsPane |
|
|
{ |
|
|
{ |
|
|
id: logPane; |
|
|
id: logPane; |
|
|
|
|
|
onContentXPosChanged: |
|
|
|
|
|
{ |
|
|
|
|
|
parent.move(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
states: [ |
|
|
states: [ |
|
|