add right click clear
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 10s
Python / lint-format (pull_request) Successful in 18s
Python / test (pull_request) Successful in 28s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m14s

This commit is contained in:
2026-06-18 20:36:28 +02:00
parent c102d0e38f
commit e37332fe6b
4 changed files with 7 additions and 31 deletions
+6
View File
@@ -122,6 +122,7 @@ Item {
property bool setInitialPoint: false
acceptedButtons: Qt.LeftButton | Qt.RightButton
enabled: root.visibilities.isDrawing
onActiveChanged: {
@@ -134,6 +135,11 @@ Item {
}
}
onPointChanged: {
if (point.pressedButtons & Qt.RightButton) {
root.drawing.clear();
return;
}
const x = point.position.x;
const y = point.position.y;
const origX = point.pressPosition.x;