2023-07-17 10:49:06 +02:00
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Controls.Material
|
2022-12-30 16:22:22 +01:00
|
|
|
|
|
|
|
|
import org.electrum 1.0
|
|
|
|
|
|
|
|
|
|
ItemDelegate {
|
|
|
|
|
id: root
|
|
|
|
|
height: itemLayout.height
|
|
|
|
|
width: ListView.view.width
|
|
|
|
|
|
|
|
|
|
GridLayout {
|
|
|
|
|
id: itemLayout
|
|
|
|
|
anchors {
|
|
|
|
|
left: parent.left
|
|
|
|
|
right: parent.right
|
2022-12-31 12:52:10 +01:00
|
|
|
leftMargin: constants.paddingXLarge
|
2022-12-30 16:22:22 +01:00
|
|
|
rightMargin: constants.paddingSmall
|
|
|
|
|
}
|
2022-12-31 12:52:10 +01:00
|
|
|
|
|
|
|
|
columns: 3
|
|
|
|
|
|
|
|
|
|
// topmargin
|
|
|
|
|
Rectangle {
|
|
|
|
|
Layout.columnSpan: 3
|
|
|
|
|
Layout.preferredHeight: constants.paddingSmall
|
|
|
|
|
color: 'transparent'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Item {
|
2023-04-06 10:36:09 +02:00
|
|
|
Layout.preferredWidth: constants.iconSizeMedium
|
|
|
|
|
Layout.preferredHeight: constants.iconSizeMedium
|
|
|
|
|
Image {
|
|
|
|
|
source: '../../../icons/chevron-right.png'
|
|
|
|
|
width: constants.iconSizeMedium
|
|
|
|
|
height: constants.iconSizeMedium
|
2022-12-31 12:52:10 +01:00
|
|
|
visible: model.is_primary
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Item {
|
|
|
|
|
Layout.preferredWidth: constants.iconSizeMedium
|
|
|
|
|
Layout.preferredHeight: constants.iconSizeMedium
|
|
|
|
|
Image {
|
|
|
|
|
source: '../../../icons/status_connected.png'
|
|
|
|
|
width: constants.iconSizeMedium
|
|
|
|
|
height: constants.iconSizeMedium
|
|
|
|
|
visible: model.is_connected
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-12-30 16:22:22 +01:00
|
|
|
Label {
|
2022-12-31 12:52:10 +01:00
|
|
|
Layout.fillWidth: true
|
2022-12-30 16:22:22 +01:00
|
|
|
text: model.address
|
|
|
|
|
}
|
2022-12-31 12:52:10 +01:00
|
|
|
|
|
|
|
|
// bottommargin
|
|
|
|
|
Rectangle {
|
|
|
|
|
Layout.columnSpan: 3
|
|
|
|
|
Layout.preferredHeight: constants.paddingSmall
|
|
|
|
|
color: 'transparent'
|
2022-12-30 16:22:22 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|