From 98470c504f9601b9bbe8c6be24eff4a96e9b4b14 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Sat, 18 Jun 2016 16:52:01 +0200 Subject: transfare accountId as well so that we can load and modify the settings --- components/package/contents/ui/AccountSwitcher.qml | 2 +- components/package/contents/ui/EditAccountDialog.qml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'components/package/contents') diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml index 6a9d2deb..f0b1d17e 100644 --- a/components/package/contents/ui/AccountSwitcher.qml +++ b/components/package/contents/ui/AccountSwitcher.qml @@ -174,7 +174,7 @@ Button { anchors.fill: parent - //accountId: accountFactory.accountId + accountId: accountFactory.accountId uiSource: accountFactory.uiPath } } diff --git a/components/package/contents/ui/EditAccountDialog.qml b/components/package/contents/ui/EditAccountDialog.qml index b2432eff..d065bbc2 100644 --- a/components/package/contents/ui/EditAccountDialog.qml +++ b/components/package/contents/ui/EditAccountDialog.qml @@ -29,6 +29,7 @@ Rectangle { id: root property variant uiSource + property variant accountId color: ColorPalette.border opacity: 0.9 @@ -54,10 +55,10 @@ Rectangle { } Loader { - anchors.fill: parent - source: uiSource + source: root.uiSource + onLoaded: item.accountId = root.accountId } Component.onCompleted: console.log(uiSource) -- cgit v1.2.3