status-desktop/ui/imports/shared/panels/CropCornerRectangle.qml
Jonathan Rainville 739437df56 Revert "fix(Profile): Added menu to remove profile image"
This reverts commit f60dacc45dd35773fc205ef9c0a2640bb79030d7.
2022-08-09 15:09:45 -04:00

30 lines
562 B
QML

import QtQuick 2.13
import utils 1.0
Rectangle {
signal released()
signal pressed()
id: root
width: 25
height: 25
border.width: 2
border.color: Style.current.orange
color: Utils.setColorAlpha(Style.current.orange, 0.5)
Drag.active: dragArea.drag.active
MouseArea {
id: dragArea
property int oldX
property int oldY
anchors.fill: parent
drag.target: parent
cursorShape: Qt.PointingHandCursor
onReleased: root.released()
onPressed: root.pressed()
}
}