|
|
@ -15,9 +15,9 @@ Rectangle |
|
|
|
|
|
|
|
anchors.fill: parent |
|
|
|
radius: 5 |
|
|
|
color: "#f7f7f7" |
|
|
|
border.color: "#808080" |
|
|
|
border.width: 1 |
|
|
|
color: LogsPaneStyle.generic.layout.backgroundColor |
|
|
|
border.color: LogsPaneStyle.generic.layout.borderColor |
|
|
|
border.width: LogsPaneStyle.generic.layout.borderWidth |
|
|
|
ColumnLayout { |
|
|
|
z: 2 |
|
|
|
height: parent.height |
|
|
@ -26,14 +26,14 @@ Rectangle |
|
|
|
Row |
|
|
|
{ |
|
|
|
id: rowAction |
|
|
|
Layout.preferredHeight: 35 |
|
|
|
height: 35 |
|
|
|
anchors.leftMargin: 10 |
|
|
|
Layout.preferredHeight: LogsPaneStyle.generic.layout.headerHeight |
|
|
|
height: LogsPaneStyle.generic.layout.headerHeight |
|
|
|
anchors.leftMargin: LogsPaneStyle.generic.layout.leftMargin |
|
|
|
anchors.left: parent.left |
|
|
|
spacing: 5 |
|
|
|
spacing: LogsPaneStyle.generic.layout.headerButtonSpacing |
|
|
|
Button |
|
|
|
{ |
|
|
|
height: 30 |
|
|
|
height: LogsPaneStyle.generic.layout.headerButtonHeight |
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
action: clearAction |
|
|
|
iconSource: "qrc:/qml/img/broom.png" |
|
|
@ -50,7 +50,7 @@ Rectangle |
|
|
|
|
|
|
|
Button |
|
|
|
{ |
|
|
|
height: 30 |
|
|
|
height: LogsPaneStyle.generic.layout.headerButtonHeight |
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
action: copytoClipBoardAction |
|
|
|
iconSource: "qrc:/qml/img/copy.png" |
|
|
@ -81,7 +81,7 @@ Rectangle |
|
|
|
ToolButton { |
|
|
|
id: javascriptButton |
|
|
|
checkable: true |
|
|
|
height: 30 |
|
|
|
height: LogsPaneStyle.generic.layout.headerButtonHeight |
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
checked: true |
|
|
|
onCheckedChanged: { |
|
|
@ -93,9 +93,9 @@ Rectangle |
|
|
|
label: |
|
|
|
Item { |
|
|
|
DefaultLabel { |
|
|
|
font.family: "sans serif" |
|
|
|
font.family: LogsPaneStyle.generic.layout.logLabelFont |
|
|
|
font.pointSize: Style.absoluteSize(-3) |
|
|
|
color: "#5391d8" |
|
|
|
color: LogsPaneStyle.generic.layout.logLabelColor |
|
|
|
anchors.centerIn: parent |
|
|
|
text: qsTr("JavaScript") |
|
|
|
} |
|
|
@ -106,7 +106,7 @@ Rectangle |
|
|
|
ToolButton { |
|
|
|
id: runButton |
|
|
|
checkable: true |
|
|
|
height: 30 |
|
|
|
height: LogsPaneStyle.generic.layout.headerButtonHeight |
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
checked: true |
|
|
|
onCheckedChanged: { |
|
|
@ -118,9 +118,9 @@ Rectangle |
|
|
|
label: |
|
|
|
Item { |
|
|
|
DefaultLabel { |
|
|
|
font.family: "sans serif" |
|
|
|
font.family: LogsPaneStyle.generic.layout.logLabelFont |
|
|
|
font.pointSize: Style.absoluteSize(-3) |
|
|
|
color: "#5391d8" |
|
|
|
color: LogsPaneStyle.generic.layout.logLabelColor |
|
|
|
anchors.centerIn: parent |
|
|
|
text: qsTr("Run") |
|
|
|
} |
|
|
@ -131,7 +131,7 @@ Rectangle |
|
|
|
ToolButton { |
|
|
|
id: stateButton |
|
|
|
checkable: true |
|
|
|
height: 30 |
|
|
|
height: LogsPaneStyle.generic.layout.headerButtonHeight |
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
checked: true |
|
|
|
onCheckedChanged: { |
|
|
@ -143,7 +143,7 @@ Rectangle |
|
|
|
label: |
|
|
|
Item { |
|
|
|
DefaultLabel { |
|
|
|
font.family: "sans serif" |
|
|
|
font.family: LogsPaneStyle.generic.layout.logLabelFont |
|
|
|
font.pointSize: Style.absoluteSize(-3) |
|
|
|
color: "#5391d8" |
|
|
|
anchors.centerIn: parent |
|
|
@ -156,7 +156,7 @@ Rectangle |
|
|
|
ToolButton { |
|
|
|
id: compilationButton |
|
|
|
checkable: true |
|
|
|
height: 30 |
|
|
|
height: LogsPaneStyle.generic.layout.headerButtonHeight |
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
checked: false |
|
|
|
onCheckedChanged: { |
|
|
@ -168,7 +168,7 @@ Rectangle |
|
|
|
label: |
|
|
|
Item { |
|
|
|
DefaultLabel { |
|
|
|
font.family: "sans serif" |
|
|
|
font.family: LogsPaneStyle.generic.layout.logLabelFont |
|
|
|
font.pointSize: Style.absoluteSize(-3) |
|
|
|
color: "#5391d8" |
|
|
|
anchors.centerIn: parent |
|
|
@ -181,10 +181,10 @@ Rectangle |
|
|
|
DefaultTextField |
|
|
|
{ |
|
|
|
id: searchBox |
|
|
|
height: 30 |
|
|
|
height: LogsPaneStyle.generic.layout.headerButtonHeight |
|
|
|
anchors.verticalCenter: parent.verticalCenter |
|
|
|
width: 200 |
|
|
|
font.family: "sans serif" |
|
|
|
width: LogsPaneStyle.generic.layout.headerInputWidth |
|
|
|
font.family: LogsPaneStyle.generic.layout.logLabelFont |
|
|
|
font.pointSize: Style.absoluteSize(-3) |
|
|
|
font.italic: true |
|
|
|
onTextChanged: { |
|
|
@ -255,21 +255,21 @@ Rectangle |
|
|
|
{ |
|
|
|
role: "date" |
|
|
|
title: qsTr("date") |
|
|
|
width: 150 |
|
|
|
width: LogsPaneStyle.generic.layout.dateWidth |
|
|
|
delegate: itemDelegate |
|
|
|
} |
|
|
|
TableViewColumn |
|
|
|
{ |
|
|
|
role: "type" |
|
|
|
title: qsTr("type") |
|
|
|
width: 80 |
|
|
|
width: LogsPaneStyle.generic.layout.typeWidth |
|
|
|
delegate: itemDelegate |
|
|
|
} |
|
|
|
TableViewColumn |
|
|
|
{ |
|
|
|
role: "content" |
|
|
|
title: qsTr("content") |
|
|
|
width: 700 |
|
|
|
width: LogsPaneStyle.generic.layout.contentWidth |
|
|
|
delegate: itemDelegate |
|
|
|
} |
|
|
|
|
|
|
@ -286,7 +286,7 @@ Rectangle |
|
|
|
id: itemDelegate |
|
|
|
DefaultLabel { |
|
|
|
text: styleData.value; |
|
|
|
font.family: "sans serif" |
|
|
|
font.family: LogsPaneStyle.generic.layout.logLabelFont |
|
|
|
font.pointSize: Style.absoluteSize(-1) |
|
|
|
color: { |
|
|
|
if (proxyModel.get(styleData.row).level === "error") |
|
|
@ -296,5 +296,5 @@ Rectangle |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|