Browse Source

qml: rename walletdetails to walletsummary

patch-4
Sander van Grieken 2 years ago
parent
commit
3f9df0517a
  1. 2
      electrum/gui/qml/components/WalletSummary.qml
  2. 6
      electrum/gui/qml/components/main.qml

2
electrum/gui/qml/components/WalletDetails.qml → electrum/gui/qml/components/WalletSummary.qml

@ -173,11 +173,9 @@ Item {
id: piechart id: piechart
visible: Daemon.currentWallet.totalBalance.satsInt > 0 visible: Daemon.currentWallet.totalBalance.satsInt > 0
Layout.preferredWidth: parent.width Layout.preferredWidth: parent.width
// Layout.preferredHeight: 200
implicitHeight: 200 implicitHeight: 200
innerOffset: 6 innerOffset: 6
function updateSlices() { function updateSlices() {
console.log('update piechart, w='+width+',h='+height)
var totalB = Daemon.currentWallet.totalBalance.satsInt var totalB = Daemon.currentWallet.totalBalance.satsInt
var onchainB = Daemon.currentWallet.confirmedBalance.satsInt var onchainB = Daemon.currentWallet.confirmedBalance.satsInt
var frozenB = Daemon.currentWallet.frozenBalance.satsInt var frozenB = Daemon.currentWallet.frozenBalance.satsInt

6
electrum/gui/qml/components/main.qml

@ -62,7 +62,7 @@ ApplicationWindow
font.bold: true font.bold: true
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onClicked: walletDetails.toggle() onClicked: walletSummary.toggle()
} }
} }
@ -121,8 +121,8 @@ ApplicationWindow
} }
} }
WalletDetails { WalletSummary {
id: walletDetails id: walletSummary
Layout.preferredWidth: parent.width Layout.preferredWidth: parent.width
} }
} }

Loading…
Cancel
Save