From 3f9df0517aa403d8bfc15c8120d1f3a53f5485d7 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 31 Oct 2022 17:25:30 +0100 Subject: [PATCH] qml: rename walletdetails to walletsummary --- .../qml/components/{WalletDetails.qml => WalletSummary.qml} | 2 -- electrum/gui/qml/components/main.qml | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) rename electrum/gui/qml/components/{WalletDetails.qml => WalletSummary.qml} (98%) diff --git a/electrum/gui/qml/components/WalletDetails.qml b/electrum/gui/qml/components/WalletSummary.qml similarity index 98% rename from electrum/gui/qml/components/WalletDetails.qml rename to electrum/gui/qml/components/WalletSummary.qml index 131a8af0e..cad0cb0b5 100644 --- a/electrum/gui/qml/components/WalletDetails.qml +++ b/electrum/gui/qml/components/WalletSummary.qml @@ -173,11 +173,9 @@ Item { id: piechart visible: Daemon.currentWallet.totalBalance.satsInt > 0 Layout.preferredWidth: parent.width - // Layout.preferredHeight: 200 implicitHeight: 200 innerOffset: 6 function updateSlices() { - console.log('update piechart, w='+width+',h='+height) var totalB = Daemon.currentWallet.totalBalance.satsInt var onchainB = Daemon.currentWallet.confirmedBalance.satsInt var frozenB = Daemon.currentWallet.frozenBalance.satsInt diff --git a/electrum/gui/qml/components/main.qml b/electrum/gui/qml/components/main.qml index 8783dbc4d..d162097f4 100644 --- a/electrum/gui/qml/components/main.qml +++ b/electrum/gui/qml/components/main.qml @@ -62,7 +62,7 @@ ApplicationWindow font.bold: true MouseArea { anchors.fill: parent - onClicked: walletDetails.toggle() + onClicked: walletSummary.toggle() } } @@ -121,8 +121,8 @@ ApplicationWindow } } - WalletDetails { - id: walletDetails + WalletSummary { + id: walletSummary Layout.preferredWidth: parent.width } }