|
|
@ -201,8 +201,8 @@ def __handle_move_points(ctx, event): |
|
|
|
|
|
|
|
|
|
|
|
if __left_click_flag is __ClickFlag.NONE: |
|
|
|
if __left_click_flag is __ClickFlag.NONE: |
|
|
|
__left_click_flag = __ClickFlag.SELECTION_BOX |
|
|
|
__left_click_flag = __ClickFlag.SELECTION_BOX |
|
|
|
set_move_bb_top_left(event.x(), event.y()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_move_bb_top_left(event.x(), event.y()) |
|
|
|
|
|
|
|
|
|
|
|
elif (__left_click_flag is __ClickFlag.SELECTION_BOX |
|
|
|
elif (__left_click_flag is __ClickFlag.SELECTION_BOX |
|
|
|
and __left_mouse_down): |
|
|
|
and __left_mouse_down): |
|
|
@ -254,8 +254,8 @@ def __handle_move_points(ctx, event): |
|
|
|
elif (__left_click_flag is not __ClickFlag.NONE and |
|
|
|
elif (__left_click_flag is not __ClickFlag.NONE and |
|
|
|
event.type() == QEvent.MouseButtonRelease): |
|
|
|
event.type() == QEvent.MouseButtonRelease): |
|
|
|
|
|
|
|
|
|
|
|
# Final bottom right corner point |
|
|
|
|
|
|
|
if __left_click_flag is __ClickFlag.SELECTION_BOX: |
|
|
|
if __left_click_flag is __ClickFlag.SELECTION_BOX: |
|
|
|
|
|
|
|
|
|
|
|
set_move_bb_bottom_right(event.x(), event.y()) |
|
|
|
set_move_bb_bottom_right(event.x(), event.y()) |
|
|
|
|
|
|
|
|
|
|
|
# Satisfy the post condition by resetting the bounding box |
|
|
|
# Satisfy the post condition by resetting the bounding box |
|
|
|