2024-03-25 13:29:31 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtGraphicalEffects 1.15
|
2022-06-22 12:16:21 +00:00
|
|
|
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
2024-10-28 23:00:16 +00:00
|
|
|
import AppLayouts.Wallet.stores 1.0 as WalletStores
|
2024-03-25 13:29:31 +00:00
|
|
|
import shared.controls 1.0
|
2024-10-28 23:00:16 +00:00
|
|
|
import shared.views 1.0 as SharedViews
|
2024-03-25 13:29:31 +00:00
|
|
|
|
2022-06-22 12:16:21 +00:00
|
|
|
Item {
|
2024-11-21 15:10:58 +00:00
|
|
|
property alias contactDetails: profilePreview.contactDetails
|
|
|
|
|
2022-06-22 12:16:21 +00:00
|
|
|
property alias profileStore: profilePreview.profileStore
|
2022-09-27 21:26:26 +00:00
|
|
|
property alias contactsStore: profilePreview.contactsStore
|
2024-10-22 12:39:42 +00:00
|
|
|
property alias utilsStore: profilePreview.utilsStore
|
|
|
|
|
2024-03-29 11:43:49 +00:00
|
|
|
property alias sendToAccountEnabled: profilePreview.sendToAccountEnabled
|
2022-06-22 12:16:21 +00:00
|
|
|
|
2024-03-29 11:43:49 +00:00
|
|
|
property alias showcaseCommunitiesModel: profilePreview.showcaseCommunitiesModel
|
|
|
|
property alias showcaseAccountsModel: profilePreview.showcaseAccountsModel
|
|
|
|
property alias showcaseCollectiblesModel: profilePreview.showcaseCollectiblesModel
|
|
|
|
property alias showcaseSocialLinksModel: profilePreview.showcaseSocialLinksModel
|
|
|
|
property alias showcaseAssetsModel: profilePreview.showcaseAssetsModel
|
|
|
|
|
2024-02-15 09:25:40 +00:00
|
|
|
property alias assetsModel: profilePreview.assetsModel
|
|
|
|
property alias collectiblesModel: profilePreview.collectiblesModel
|
2024-03-29 11:43:49 +00:00
|
|
|
|
2022-06-22 12:16:21 +00:00
|
|
|
implicitHeight: profilePreview.implicitHeight
|
2024-03-25 13:29:31 +00:00
|
|
|
+ layout.anchors.topMargin
|
|
|
|
+ layout.anchors.bottomMargin
|
2022-06-22 12:16:21 +00:00
|
|
|
|
|
|
|
implicitWidth: profilePreview.implicitWidth
|
2024-03-25 13:29:31 +00:00
|
|
|
+ layout.anchors.leftMargin
|
|
|
|
+ layout.anchors.rightMargin
|
2022-06-22 12:16:21 +00:00
|
|
|
|
2022-09-27 21:26:26 +00:00
|
|
|
function reload() {
|
|
|
|
profilePreview.reload()
|
|
|
|
}
|
|
|
|
|
2024-03-25 13:29:31 +00:00
|
|
|
ColumnLayout {
|
|
|
|
id: layout
|
2022-06-22 12:16:21 +00:00
|
|
|
anchors.fill: parent
|
2024-02-07 09:54:45 +00:00
|
|
|
anchors.margins: 64
|
2024-03-25 13:29:31 +00:00
|
|
|
spacing: 20
|
|
|
|
ProfilePerspectiveSelector {
|
|
|
|
id: selector
|
|
|
|
showcaseVisibility: profilePreview.showcaseMaxVisibility
|
|
|
|
onVisibilitySelected: (visibility) => profilePreview.showcaseMaxVisibility = visibility
|
|
|
|
}
|
|
|
|
|
|
|
|
SharedViews.ProfileDialogView {
|
|
|
|
id: profilePreview
|
2024-10-28 23:00:16 +00:00
|
|
|
|
2024-03-25 13:29:31 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.maximumHeight: implicitHeight
|
2024-10-28 23:00:16 +00:00
|
|
|
|
|
|
|
walletStore: WalletStores.RootStore
|
|
|
|
|
2024-03-25 13:29:31 +00:00
|
|
|
readOnly: true
|
|
|
|
}
|
|
|
|
Item { Layout.fillHeight: true }
|
2022-06-22 12:16:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DropShadow {
|
|
|
|
id: shadow
|
2024-03-25 13:29:31 +00:00
|
|
|
anchors.fill: layout
|
|
|
|
anchors.topMargin: profilePreview.y
|
2022-06-22 12:16:21 +00:00
|
|
|
horizontalOffset: 0
|
|
|
|
verticalOffset: 4
|
|
|
|
radius: 16
|
|
|
|
samples: 12
|
|
|
|
color: "#40000000"
|
|
|
|
source: profilePreview
|
|
|
|
}
|
2022-09-27 21:26:26 +00:00
|
|
|
}
|