yann300
10 years ago
13 changed files with 470 additions and 190 deletions
@ -0,0 +1,74 @@ |
|||
import QtQuick 2.2 |
|||
import QtQuick.Controls 1.1 |
|||
import QtQuick.Controls.Styles 1.1 |
|||
import QtQuick.Layouts 1.1 |
|||
import "." |
|||
|
|||
DebugInfoList |
|||
{ |
|||
id: callStack |
|||
collapsible: true |
|||
title : qsTr("Call Stack") |
|||
enableSelection: true |
|||
itemDelegate: |
|||
Item { |
|||
anchors.fill: parent |
|||
|
|||
Rectangle { |
|||
anchors.fill: parent |
|||
color: "#4A90E2" |
|||
visible: styleData.selected; |
|||
} |
|||
|
|||
RowLayout |
|||
{ |
|||
id: row |
|||
anchors.fill: parent |
|||
Rectangle |
|||
{ |
|||
color: "#f7f7f7" |
|||
Layout.fillWidth: true |
|||
Layout.minimumWidth: 30 |
|||
Layout.maximumWidth: 30 |
|||
Text { |
|||
anchors.verticalCenter: parent.verticalCenter |
|||
anchors.left: parent.left |
|||
font.family: "monospace" |
|||
anchors.leftMargin: 5 |
|||
color: "#4a4a4a" |
|||
text: styleData.row; |
|||
font.pointSize: DebuggerPaneStyle.general.basicFontSize |
|||
width: parent.width - 5 |
|||
elide: Text.ElideRight |
|||
} |
|||
} |
|||
Rectangle |
|||
{ |
|||
color: "transparent" |
|||
Layout.fillWidth: true |
|||
Layout.minimumWidth: parent.width - 30 |
|||
Layout.maximumWidth: parent.width - 30 |
|||
Text { |
|||
anchors.leftMargin: 5 |
|||
width: parent.width - 5 |
|||
wrapMode: Text.NoWrap |
|||
anchors.left: parent.left |
|||
font.family: "monospace" |
|||
anchors.verticalCenter: parent.verticalCenter |
|||
color: "#4a4a4a" |
|||
text: styleData.value; |
|||
elide: Text.ElideRight |
|||
font.pointSize: DebuggerPaneStyle.general.basicFontSize |
|||
} |
|||
} |
|||
} |
|||
|
|||
Rectangle { |
|||
anchors.top: row.bottom |
|||
width: parent.width; |
|||
height: 1; |
|||
color: "#cccccc" |
|||
anchors.bottom: parent.bottom |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,69 @@ |
|||
import QtQuick 2.2 |
|||
import QtQuick.Controls 1.1 |
|||
import QtQuick.Controls.Styles 1.1 |
|||
import QtQuick.Layouts 1.1 |
|||
import "." |
|||
|
|||
DebugInfoList |
|||
{ |
|||
id: storage |
|||
collapsible: true |
|||
title : qsTr("Storage") |
|||
itemDelegate: |
|||
Item { |
|||
anchors.fill: parent |
|||
RowLayout |
|||
{ |
|||
id: row |
|||
anchors.fill: parent |
|||
Rectangle |
|||
{ |
|||
color: "#f7f7f7" |
|||
Layout.fillWidth: true |
|||
Layout.minimumWidth: parent.width / 2 |
|||
Layout.maximumWidth: parent.width / 2 |
|||
Text { |
|||
anchors.verticalCenter: parent.verticalCenter |
|||
anchors.left: parent.left |
|||
font.family: "monospace" |
|||
anchors.leftMargin: 5 |
|||
color: "#4a4a4a" |
|||
text: styleData.value.split('\t')[0]; |
|||
font.pointSize: DebuggerPaneStyle.general.basicFontSize |
|||
width: parent.width - 5 |
|||
elide: Text.ElideRight |
|||
} |
|||
} |
|||
Rectangle |
|||
{ |
|||
color: "transparent" |
|||
Layout.fillWidth: true |
|||
Layout.minimumWidth: parent.width / 2 |
|||
Layout.maximumWidth: parent.width / 2 |
|||
Text { |
|||
maximumLineCount: 1 |
|||
clip: true |
|||
anchors.leftMargin: 5 |
|||
width: parent.width - 5 |
|||
wrapMode: Text.WrapAnywhere |
|||
anchors.left: parent.left |
|||
font.family: "monospace" |
|||
anchors.verticalCenter: parent.verticalCenter |
|||
color: "#4a4a4a" |
|||
text: styleData.value.split('\t')[1]; |
|||
elide: Text.ElideRight |
|||
font.pointSize: DebuggerPaneStyle.general.basicFontSize |
|||
} |
|||
} |
|||
} |
|||
|
|||
Rectangle { |
|||
anchors.top: row.bottom |
|||
width: parent.width; |
|||
height: 1; |
|||
color: "#cccccc" |
|||
anchors.bottom: parent.bottom |
|||
} |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue