Skip to content

Commit dcee7c1

Browse files
committed
Adding new hand cursor for the origin point
1 parent 4e88c37 commit dcee7c1

File tree

3 files changed

+36
-15
lines changed

3 files changed

+36
-15
lines changed

src/images/cursor_hand.png

956 Bytes
Loading

src/images/cursors.svg

+34-14
Loading

src/windows/video_widget.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def mouseMoveEvent(self, event):
378378
# Determine if cursor is over a handle
379379
if self.transform.mapToPolygon(self.centerHandle.toRect()).containsPoint(event.pos(), Qt.OddEvenFill):
380380
if not self.transform_mode or self.transform_mode == 'origin':
381-
self.setCursor(self.rotateCursor(self.cursors.get('move'), rotation, shear_x, shear_y))
381+
self.setCursor(self.rotateCursor(self.cursors.get('hand'), rotation, shear_x, shear_y))
382382
# Set the transform mode
383383
if self.mouse_dragging and not self.transform_mode:
384384
self.transform_mode = 'origin'
@@ -807,6 +807,7 @@ def __init__(self, *args):
807807
"rotate": QPixmap(os.path.join(info.IMAGES_PATH, "cursor_rotate.png")),
808808
"shear_x": QPixmap(os.path.join(info.IMAGES_PATH, "cursor_shear_x.png")),
809809
"shear_y": QPixmap(os.path.join(info.IMAGES_PATH, "cursor_shear_y.png")),
810+
"hand": QPixmap(os.path.join(info.IMAGES_PATH, "cursor_hand.png")),
810811
}
811812

812813
# Mutex lock

0 commit comments

Comments
 (0)