1
0

qml: use new wizard approach in qml and also implement 2FA/trustedcoin

This commit is contained in:
Sander van Grieken
2022-09-22 12:43:51 +02:00
parent a4195267ff
commit 43bac2edff
22 changed files with 874 additions and 217 deletions

View File

@@ -29,6 +29,7 @@ from .qechannelopener import QEChannelOpener
from .qelnpaymentdetails import QELnPaymentDetails
from .qechanneldetails import QEChannelDetails
from .qeswaphelper import QESwapHelper
from .qewizard import QENewWalletWizard
notification = None
@@ -217,6 +218,7 @@ class ElectrumQmlApplication(QGuiApplication):
qmlRegisterType(QERequestDetails, 'org.electrum', 1, 0, 'RequestDetails')
qmlRegisterUncreatableType(QEAmount, 'org.electrum', 1, 0, 'Amount', 'Amount can only be used as property')
qmlRegisterUncreatableType(QENewWalletWizard, 'org.electrum', 1, 0, 'NewWalletWizard', 'NewWalletWizard can only be used as property')
self.engine = QQmlApplicationEngine(parent=self)
@@ -254,6 +256,8 @@ class ElectrumQmlApplication(QGuiApplication):
'protocol_version': version.PROTOCOL_VERSION
})
self.plugins.load_plugin('trustedcoin')
qInstallMessageHandler(self.message_handler)
# get notified whether root QML document loads or not