chore: misc non-range cleanup#500
Open
FelipeDefensor wants to merge 12 commits into
Open
Conversation
8c2a607 to
2665403
Compare
FelipeDefensor
commented
May 4, 2026
2665403 to
4c9267a
Compare
So that an overlapping item set as transparent to right clicks doesn't intercept the context menu of an underlying item.
Clearer label — "Set name" was ambiguous about what was being named.
- Remove leftover `print(name)` from `_setup_commands` that was logging every timeline kind on app startup. - Add missing space after the period in `GetComponentDataError`'s "Does ... have a ... attribute?" suffix.
set_timeline_data returned None when the new value matched the current value, which made on_timeline_command's return-value validator surface an "Invalid return values for command" dialog (e.g. setting row height to its current value via the dialog). Return False in the no-op path so the command flow treats it like cancel — bool, no undo record.
The Inspector's set_widget_value calls setText / setValue / setCurrentIndex programmatically when re-displaying values from the inspected_objects_stack (e.g. during a deselect cascade). These fire textChanged / valueChanged / currentIndexChanged, which the inspector connects to its on_*_changed handlers that post INSPECTOR_FIELD_EDITED with the stale snapshot value. The still-selected element's listener interprets that as a user edit and writes the snapshot value back to the component. The result: any programmatic change to an inspectable field is silently reverted whenever a multi-selected element is deselected while the inspector is open.
Move-up/move-down sit with the rest of the per-timeline actions in the top section of the context menu now (previously below a leading separator), and use the unambiguous "Move timeline up" / "Move timeline down" labels. Applies to every timeline kind since the base class drives this; the new label is clearer everywhere.
Adds two regression tests: - `test_slider_drag_release_seeks_media`: drag the trough and assert MEDIA_CURRENT_TIME advances on release (the bug fixed in 5c5ffc7). - `test_slider_click_seeks_media`: pin the click-to-seek path so a refactor can't silently break both at once.
azfoo
requested changes
Jun 2, 2026
| ] | ||
|
|
||
| def __init__(self, timeline_ui): | ||
| def __init__(self, timeline_ui: TimelineUI, x: int, y: int): |
Collaborator
There was a problem hiding this comment.
am I right to assume that this actually gets used somewhere later on?
| items = [ | ||
| item | ||
| for item in self.items(event.pos()) | ||
| if not getattr(item, "ignore_right_click", False) |
Collaborator
There was a problem hiding this comment.
what has the attribute "ignore_right_click"?
4c9267a to
0814d09
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
12 commits with small fixes/improvements. Including:
refactor: return success from App.on_openfix: inheritance/menu-name, typingchore: take path parameter to file.save_as commandchore: pass y argument to timelines context menusfeat: skip QGraphicsItems with ignore_right_click=True on right clickfix: rename "Set name" timeline action to "Set timeline name"chore: tidy debug print and GetComponentDataError messagefix: avoid invalid-return-value error when set_timeline_data is a no-opfix: block widget signals during programmatic value updatesfeat: rename and relocate "Move timeline up/down"test: cover slider click + drag-release seeking media