mirror of
https://github.com/overte-org/overte.git
synced 2025-04-30 18:22:44 +02:00
36 lines
718 B
QML
36 lines
718 B
QML
import QtQuick 2.0
|
|
|
|
Item {
|
|
|
|
property alias border: borderRectangle.border
|
|
property alias source: image.source
|
|
property alias fillMode: image.fillMode
|
|
property alias radius: mask.radius
|
|
property alias status: image.status
|
|
property alias progress: image.progress
|
|
|
|
Image {
|
|
id: image
|
|
anchors.fill: parent
|
|
anchors.margins: borderRectangle.border.width
|
|
}
|
|
|
|
Rectangle {
|
|
id: mask
|
|
anchors.fill: image
|
|
}
|
|
|
|
TransparencyMask {
|
|
anchors.fill: image
|
|
source: image
|
|
maskSource: mask
|
|
}
|
|
|
|
Rectangle {
|
|
id: borderRectangle
|
|
anchors.fill: parent
|
|
|
|
radius: mask.radius
|
|
color: "transparent"
|
|
}
|
|
}
|