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

29 lines
615 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"
anchors {
top: profileImage.top
topMargin: Theme.horizontalPageMargin
right: parent.right
rightMargin: Theme.horizontalPageMargin
}
onClicked: pageStack.pop()
}
}