status-desktop/ui/app/AppLayouts/Profile/views/profile/MyProfilePreview.qml

44 lines
1.1 KiB
QML
Raw Normal View History

2022-09-27 21:26:26 +00:00
import QtQuick 2.14
2022-06-22 12:16:21 +00:00
import QtGraphicalEffects 1.14
import shared.views 1.0 as SharedViews
import StatusQ.Core.Theme 0.1
Item {
property alias profileStore: profilePreview.profileStore
2022-09-27 21:26:26 +00:00
property alias contactsStore: profilePreview.contactsStore
property alias dirtyValues: profilePreview.dirtyValues
property alias dirty: profilePreview.dirty
2022-06-22 12:16:21 +00:00
implicitHeight: profilePreview.implicitHeight
+ profilePreview.anchors.topMargin
+ profilePreview.anchors.bottomMargin
implicitWidth: profilePreview.implicitWidth
+ profilePreview.anchors.leftMargin
+ profilePreview.anchors.rightMargin
2022-09-27 21:26:26 +00:00
function reload() {
profilePreview.reload()
}
SharedViews.ProfileDialogView {
2022-06-22 12:16:21 +00:00
id: profilePreview
anchors.fill: parent
anchors.margins: 24
2022-09-27 21:26:26 +00:00
readOnly: true
2022-06-22 12:16:21 +00:00
}
DropShadow {
id: shadow
anchors.fill: profilePreview
horizontalOffset: 0
verticalOffset: 4
radius: 16
samples: 12
color: "#40000000"
source: profilePreview
}
2022-09-27 21:26:26 +00:00
}