2022-09-27 21:26:26 +00:00
|
|
|
import QtQuick 2.14
|
2024-03-25 13:29:31 +00:00
|
|
|
import QtQuick.Controls 2.15
|
2022-09-27 21:26:26 +00:00
|
|
|
|
|
|
|
import StatusQ.Popups.Dialog 0.1
|
|
|
|
|
|
|
|
import shared.views 1.0
|
2024-03-25 13:29:31 +00:00
|
|
|
import shared.controls 1.0
|
2022-09-27 21:26:26 +00:00
|
|
|
|
|
|
|
StatusDialog {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property var parentPopup
|
|
|
|
|
2024-03-29 11:43:49 +00:00
|
|
|
property alias publicKey: profileView.publicKey
|
2022-09-27 21:26:26 +00:00
|
|
|
|
2024-03-29 11:43:49 +00:00
|
|
|
property alias profileStore: profileView.profileStore
|
|
|
|
property alias contactsStore: profileView.contactsStore
|
|
|
|
property alias sendToAccountEnabled: profileView.sendToAccountEnabled
|
2022-09-27 21:26:26 +00:00
|
|
|
|
2024-03-29 11:43:49 +00:00
|
|
|
property alias showcaseCommunitiesModel: profileView.showcaseCommunitiesModel
|
|
|
|
property alias showcaseAccountsModel: profileView.showcaseAccountsModel
|
|
|
|
property alias showcaseCollectiblesModel: profileView.showcaseCollectiblesModel
|
|
|
|
property alias showcaseSocialLinksModel: profileView.showcaseSocialLinksModel
|
|
|
|
property alias showcaseAssetsModel: profileView.showcaseAssetsModel
|
|
|
|
|
2024-02-15 09:25:40 +00:00
|
|
|
property alias assetsModel: profileView.assetsModel
|
|
|
|
property alias collectiblesModel: profileView.collectiblesModel
|
|
|
|
|
2024-03-29 11:43:49 +00:00
|
|
|
property alias dirtyValues: profileView.dirtyValues
|
|
|
|
property alias dirty: profileView.dirty
|
2024-03-14 17:31:38 +00:00
|
|
|
|
2024-03-25 13:29:31 +00:00
|
|
|
implicitHeight: implicitContentHeight + (header.visible ? header.height : 0)
|
2022-09-27 21:26:26 +00:00
|
|
|
width: 640
|
|
|
|
padding: 0
|
|
|
|
|
|
|
|
footer: null
|
2024-03-25 13:29:31 +00:00
|
|
|
background: null
|
|
|
|
header: Item {
|
|
|
|
id: headerItem
|
|
|
|
height: selector.height + 20
|
|
|
|
visible: profileView.isCurrentUser
|
|
|
|
|
|
|
|
TapHandler {
|
|
|
|
enabled: root.closePolicy != Popup.NoAutoClose
|
|
|
|
onTapped: {
|
|
|
|
root.close()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ProfilePerspectiveSelector {
|
|
|
|
id: selector
|
|
|
|
showcaseVisibility: profileView.showcaseMaxVisibility
|
|
|
|
onVisibilitySelected: (visibility) => profileView.showcaseMaxVisibility = visibility
|
|
|
|
}
|
|
|
|
}
|
2022-09-27 21:26:26 +00:00
|
|
|
|
|
|
|
contentItem: ProfileDialogView {
|
2024-03-29 11:43:49 +00:00
|
|
|
id: profileView
|
|
|
|
|
2022-09-27 21:26:26 +00:00
|
|
|
onCloseRequested: root.close()
|
|
|
|
}
|
|
|
|
}
|