|
|
|
|
@ -10,18 +10,20 @@ ItemDelegate {
|
|
|
|
|
width: ListView.view.width |
|
|
|
|
height: delegateLayout.height |
|
|
|
|
highlighted: ListView.isCurrentItem |
|
|
|
|
|
|
|
|
|
font.pixelSize: constants.fontSizeMedium // set default font size for child controls |
|
|
|
|
|
|
|
|
|
property int indent: 0 |
|
|
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
|
id: delegateLayout |
|
|
|
|
width: parent.width |
|
|
|
|
spacing: 0 |
|
|
|
|
|
|
|
|
|
GridLayout { |
|
|
|
|
columns: 3 |
|
|
|
|
columns: 2 |
|
|
|
|
Layout.topMargin: constants.paddingSmall |
|
|
|
|
Layout.leftMargin: constants.paddingLarge + 2*constants.paddingLarge |
|
|
|
|
Layout.bottomMargin: constants.paddingSmall |
|
|
|
|
Layout.leftMargin: constants.paddingLarge + indent |
|
|
|
|
Layout.rightMargin: constants.paddingLarge |
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
@ -41,15 +43,15 @@ ItemDelegate {
|
|
|
|
|
font.family: FixedFont |
|
|
|
|
text: model.outpoint |
|
|
|
|
elide: Text.ElideMiddle |
|
|
|
|
Layout.preferredWidth: implicitWidth + constants.paddingMedium |
|
|
|
|
} |
|
|
|
|
Label { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
visible: model.short_id |
|
|
|
|
font.family: FixedFont |
|
|
|
|
font.pixelSize: constants.fontSizeSmall |
|
|
|
|
text: '[' + model.short_id + ']' |
|
|
|
|
} |
|
|
|
|
// Label { |
|
|
|
|
// Layout.preferredWidth: implicitWidth |
|
|
|
|
// visible: model.short_id |
|
|
|
|
// font.family: FixedFont |
|
|
|
|
// font.pixelSize: constants.fontSizeSmall |
|
|
|
|
// text: '[' + model.short_id + ']' |
|
|
|
|
// } |
|
|
|
|
Item { |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop |
|
|
|
|
@ -60,15 +62,18 @@ ItemDelegate {
|
|
|
|
|
sourceSize.height: constants.iconSizeSmall |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
|
Label { |
|
|
|
|
Layout.leftMargin: constants.paddingMedium |
|
|
|
|
Layout.minimumWidth: implicitWidth |
|
|
|
|
Layout.preferredWidth: implicitWidth |
|
|
|
|
horizontalAlignment: Text.AlignRight |
|
|
|
|
font.family: FixedFont |
|
|
|
|
text: Config.formatSats(model.amount, false) |
|
|
|
|
visible: model.amount.satsInt != 0 |
|
|
|
|
} |
|
|
|
|
Label { |
|
|
|
|
Layout.minimumWidth: implicitWidth |
|
|
|
|
Layout.preferredWidth: implicitWidth |
|
|
|
|
color: Material.accentColor |
|
|
|
|
text: Config.baseUnit |
|
|
|
|
visible: model.amount.satsInt != 0 |
|
|
|
|
@ -78,7 +83,6 @@ ItemDelegate {
|
|
|
|
|
Label { |
|
|
|
|
id: labelLabel |
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
Layout.columnSpan: 2 |
|
|
|
|
visible: model.label |
|
|
|
|
font.pixelSize: constants.fontSizeMedium |
|
|
|
|
text: model.label |
|
|
|
|
@ -88,10 +92,6 @@ ItemDelegate {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Item { |
|
|
|
|
Layout.preferredWidth: 1 |
|
|
|
|
Layout.preferredHeight: constants.paddingSmall |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|