Commit Graph

20 Commits

Author SHA1 Message Date
Sander van Grieken 9772a6d5b6 qml: add workarounds for issue assigning custom types to QObject properties
- on the python side, for pyqtProperty's with a setter, the pyqtProperty should be declared as QVariant type
- on the qml side, properties should be declared 'var', not the custom type.
2026-04-22 10:15:30 +02:00
Sander van Grieken 9d29e6e03c qml: log error if not able to retrieve private key for address 2024-05-16 12:12:26 +02:00
Sander van Grieken 55a2005a6b qml: update history view after address/key delete. fixes #8782 2024-01-18 00:28:02 +01:00
Sander van Grieken 291f0ce235 qml: handle exception more gracefully when attempting to delete last address from imported wallet 2024-01-16 15:56:49 +01:00
Sander van Grieken e011bd235b qml: implement delete address for imported wallets, and fix address list on address/key add. 2023-11-10 09:30:56 +01:00
Sander van Grieken 6270eae5c9 qml: port PyQt5 to PyQt6 2023-11-07 10:16:18 +01:00
Sander van Grieken 016b5eb743 qml: show private key in address details 2023-07-09 13:43:39 +02:00
Sander van Grieken 8d0fa27065 qml: remove unnecessary assert (#8420) 2023-05-15 16:45:15 +02:00
Sander van Grieken e26d49f11e qml: consistency camelcase public slots qetxdetails, qelnpaymentdetails, qechannelopener, qeaddressdetails 2023-04-25 13:46:30 +02:00
Sander van Grieken 0bc8460005 qml: don't initialize instance variables on class scope for non-singletons
(this somehow escaped attention before, as most objects usually don't have multiple instances,
unless multiple wallets are open at the same time.)
Also, move all signal declarations, class constants and variables to the top of class definitions.
2023-01-12 13:09:21 +01:00
SomberNight 01b5e3f8e0 flake8: enable more mandatory tests 2022-10-31 16:13:22 +00:00
Sander van Grieken 65b3c1abb3 qml: fix derivation prefix not available for watch-ony wallets 2022-08-23 22:04:08 +02:00
SomberNight 7b095158bf wallet: add get_label_for_address, and make get_label private
fixes https://github.com/spesmilo/electrum/issues/7919

In the past, when creating payment requests, we keyed them by on-chain address,
and set/saved the msg of the request as label for the address.
Many places in the code were calling wallet.get_label(addr) with the expectation that
relevant payment requests are found and their message/description (if any) is considered.

wallet.get_label(key) is now made private, and instead the explicit non-polymorphic
wallet.get_label_for_{address,rhash,txid} alternatives should be used.
2022-08-09 17:21:14 +02:00
Sander van Grieken 5008cef491 qml: optimize imports 2022-07-28 16:53:05 +02:00
Sander van Grieken c505de2fe0 fixes after rebase persist_lnwatcher 2022-07-07 18:29:01 +02:00
Sander van Grieken b3920f0408 add frozen balance to balancesummary 2022-07-07 18:29:01 +02:00
Sander van Grieken 02ccd46fd5 add numtx and address history model to addres details 2022-07-07 18:29:01 +02:00
Sander van Grieken e1f53c4ea0 QEDaemon uses internal QEWalletDB for wallet open pre-checks
various other fixes
2022-07-07 18:29:01 +02:00
Sander van Grieken b188b48e2f after-rebase fixes 2022-07-07 18:29:01 +02:00
Sander van Grieken bb2b1738b7 add initial address detail page 2022-07-07 18:29:01 +02:00