2024-02-27 12:12:01 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
2024-03-13 17:38:16 +00:00
|
|
|
import SortFilterProxyModel 0.2
|
|
|
|
|
|
|
|
import StatusQ.Core.Utils 0.1
|
|
|
|
|
2024-02-27 12:12:01 +00:00
|
|
|
import Storybook 1.0
|
|
|
|
import Models 1.0
|
|
|
|
import AppLayouts.Wallet.popups 1.0
|
2024-05-22 08:13:39 +00:00
|
|
|
import AppLayouts.Wallet.stores 1.0 as WalletStores
|
2024-02-27 12:12:01 +00:00
|
|
|
|
|
|
|
SplitView {
|
|
|
|
orientation: Qt.Horizontal
|
|
|
|
|
|
|
|
PopupBackground {
|
|
|
|
id: popupBg
|
|
|
|
|
|
|
|
property var popupIntance: null
|
|
|
|
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
Button {
|
|
|
|
id: reopenButton
|
|
|
|
anchors.centerIn: parent
|
|
|
|
text: "Reopen"
|
|
|
|
enabled: !dialog.visible
|
|
|
|
|
|
|
|
onClicked: dialog.open()
|
|
|
|
}
|
|
|
|
|
|
|
|
ReceiveModal {
|
|
|
|
id: dialog
|
|
|
|
|
|
|
|
visible: true
|
2024-06-07 12:27:56 +00:00
|
|
|
accounts: WalletAccountsModel {
|
|
|
|
id: accountsModel
|
2024-02-27 12:12:01 +00:00
|
|
|
}
|
|
|
|
selectedAccount: {
|
2024-06-07 12:27:56 +00:00
|
|
|
"name": "Hot wallet (generated)",
|
|
|
|
"emoji": "🚗",
|
|
|
|
"color": "#216266",
|
|
|
|
"address": "0x7F47C2e98a4BBf5487E6fb082eC2D9Ab0E6d8881",
|
2024-02-27 12:12:01 +00:00
|
|
|
}
|
|
|
|
switchingAccounsEnabled: true
|
|
|
|
hasFloatingButtons: true
|
|
|
|
qrImageSource: "https://upload.wikimedia.org/wikipedia/commons/4/41/QR_Code_Example.svg"
|
|
|
|
|
2024-05-22 08:13:39 +00:00
|
|
|
store: WalletStores.RootStore
|
2024-10-04 15:23:26 +00:00
|
|
|
|
|
|
|
onUpdateSelectedAddress: {
|
|
|
|
dialog.selectedAccount = ModelUtils.getByKey(dialog.accounts, "address", address)
|
|
|
|
}
|
2024-02-27 12:12:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Pane {
|
|
|
|
SplitView.minimumWidth: 300
|
|
|
|
SplitView.preferredWidth: 300
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// category: Popups
|
|
|
|
|
|
|
|
// https://www.figma.com/file/FkFClTCYKf83RJWoifWgoX/Wallet-v2?type=design&node-id=20734-337595&mode=design&t=2O68lxNGG9g1b1tx-4
|