address code review
This commit is contained in:
parent
c1f6a0d06d
commit
50fc70adfb
|
@ -10,7 +10,7 @@ type OnboardingController* = ref object of SignalSubscriber
|
||||||
variant*: QVariant
|
variant*: QVariant
|
||||||
model*: AccountModel
|
model*: AccountModel
|
||||||
|
|
||||||
proc newController*(events: EventEmitter, model: AccountModel): OnboardingController =
|
proc newController*(model: AccountModel): OnboardingController =
|
||||||
result = OnboardingController()
|
result = OnboardingController()
|
||||||
result.model = model
|
result.model = model
|
||||||
result.view = newOnboardingView(result.model)
|
result.view = newOnboardingView(result.model)
|
||||||
|
|
|
@ -63,7 +63,7 @@ proc mainProc() =
|
||||||
wallet.init()
|
wallet.init()
|
||||||
profile.init($accountsModel.subaccounts) # TODO: use correct account
|
profile.init($accountsModel.subaccounts) # TODO: use correct account
|
||||||
|
|
||||||
var onboarding = onboarding.newController(events, accountsModel)
|
var onboarding = onboarding.newController(accountsModel)
|
||||||
onboarding.init()
|
onboarding.init()
|
||||||
engine.setRootContextProperty("onboardingModel", onboarding.variant)
|
engine.setRootContextProperty("onboardingModel", onboarding.variant)
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ proc mainProc() =
|
||||||
accountsModel.events.on("accountsReady") do(a: Args):
|
accountsModel.events.on("accountsReady") do(a: Args):
|
||||||
appState.addChannel("test")
|
appState.addChannel("test")
|
||||||
appState.addChannel("test2")
|
appState.addChannel("test2")
|
||||||
|
|
||||||
engine.load("../ui/main.qml")
|
engine.load("../ui/main.qml")
|
||||||
|
|
||||||
# Please note that this must use the `cdecl` calling convention because
|
# Please note that this must use the `cdecl` calling convention because
|
||||||
|
|
|
@ -15,10 +15,6 @@ SwipeView {
|
||||||
currentItem.txtPassword.focus = true;
|
currentItem.txtPassword.focus = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
ListModel {
|
|
||||||
id: generatedAccountsModel
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: wizardStep2
|
id: wizardStep2
|
||||||
property int selectedIndex: 0
|
property int selectedIndex: 0
|
||||||
|
|
Loading…
Reference in New Issue