harbour-tooter/qml/pages/components/ProfileImage.qml

28 lines
613 B
QML
Raw Normal View History

import QtQuick 2.0
import Sailfish.Silica 1.0
FullscreenContentPage {
id: profileImage
2020-06-11 15:11:39 +03:00
property string image: ""
2020-06-10 12:44:58 +03:00
allowedOrientations: Orientation.All
Image {
source: image
fillMode: Image.PreserveAspectFit
anchors.fill: parent
}
IconButton {
icon.source: "image://theme/icon-m-dismiss"
2020-07-06 11:28:42 +03:00
onClicked: pageStack.pop()
anchors {
top: profileImage.top
topMargin: Theme.horizontalPageMargin
right: parent.right
rightMargin: Theme.horizontalPageMargin
}
}
}