forked from carver/mix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ethereum#250 from LianaHus/develop
debug button
- Loading branch information
Showing
8 changed files
with
74 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -243,12 +243,12 @@ ColumnLayout | |
DefaultText | ||
{ | ||
id: hash | ||
Layout.preferredWidth: (parent.width / 2) - 50 | ||
Layout.preferredWidth: (parent.width / 2) - 80 | ||
anchors.verticalCenter: parent.verticalCenter | ||
anchors.left: parent.left | ||
anchors.leftMargin: horizontalMargin | ||
elide: Text.ElideRight | ||
width: parent.width - 50 | ||
width: parent.width - 80 | ||
maximumLineCount: 1 | ||
clip: true | ||
color: labelColor | ||
|
@@ -263,7 +263,7 @@ ColumnLayout | |
|
||
Rectangle | ||
{ | ||
Layout.preferredWidth: 60 | ||
Layout.preferredWidth: 30 | ||
DefaultLabel | ||
{ | ||
anchors.horizontalCenter: parent.horizontalCenter | ||
|
@@ -318,31 +318,60 @@ ColumnLayout | |
} | ||
} | ||
|
||
Rectangle | ||
RowLayout | ||
{ | ||
width: 15 | ||
height: 15 | ||
anchors.right: parent.right | ||
anchors.verticalCenter: parent.verticalCenter | ||
anchors.rightMargin: 10 | ||
color: "transparent" | ||
Image { | ||
id: debugImg | ||
source: txDetail.visible ? "qrc:/qml/img/[email protected]" : "qrc:/qml/img/[email protected]" | ||
width: parent.width | ||
fillMode: Image.PreserveAspectFit | ||
anchors.horizontalCenter: parent.horizontalCenter | ||
visible: tx !== null && tx !== undefined && tx.recordIndex !== undefined | ||
MouseArea | ||
|
||
DefaultButton | ||
{ | ||
width: 15 | ||
height: 15 | ||
id: debugTxButton | ||
anchors.verticalCenter: parent.verticalCenter | ||
Layout.preferredWidth: 30 | ||
Layout.preferredHeight: 30 | ||
style: ButtonStyle | ||
{ | ||
id: name | ||
label: Image { source: "qrc:/qml/img/bugiconactive.png" } | ||
} | ||
TooltipArea { | ||
text: qsTr("Debug transaction") | ||
anchors.fill: parent | ||
onClicked: | ||
{ | ||
txDetail.visible = !txDetail.visible | ||
if (txDetail.visible) | ||
colDetail.updateContainerHeight() | ||
else | ||
txDetail.Layout.preferredHeight = 0 | ||
if (tx.recordIndex !== undefined) | ||
clientModel.debugRecord(tx.recordIndex, tx.label); | ||
} | ||
} | ||
} | ||
Rectangle | ||
{ | ||
width: 15 | ||
height: 15 | ||
color: "transparent" | ||
TooltipArea { | ||
text: qsTr("Expand transaction") | ||
anchors.fill: parent | ||
} | ||
Image { | ||
id: expandImg | ||
source: txDetail.visible ? "qrc:/qml/img/[email protected]" : "qrc:/qml/img/[email protected]" | ||
width: parent.width | ||
fillMode: Image.PreserveAspectFit | ||
anchors.horizontalCenter: parent.horizontalCenter | ||
visible: tx !== null && tx !== undefined && tx.recordIndex !== undefined | ||
MouseArea | ||
{ | ||
anchors.fill: parent | ||
onClicked: | ||
{ | ||
txDetail.visible = !txDetail.visible | ||
if (txDetail.visible) | ||
colDetail.updateContainerHeight() | ||
else | ||
txDetail.Layout.preferredHeight = 0 | ||
} | ||
} | ||
} | ||
} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.