Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markers fixes and polish #336

Closed
wants to merge 4 commits into from

Conversation

pgilfernandez
Copy link

@pgilfernandez pgilfernandez commented Nov 20, 2024

I have polished the Markers editor:

  • fixed the problem of "marker at frame 0 being deleted when using addButton".
    It solves macOS Support #272 (comment)
  • limited the creation of fake markers at same frame
  • synced the marker editor list if it's open and you decide to create, move or delete markers directly from the timeline

I hope everything is fine
=)

Cheers

@pgilfernandez
Copy link
Author

Just a quick demo to show you what I did with in this PR:

markers_improvements.mp4

@rodlie
Copy link
Member

rodlie commented Nov 23, 2024

The code looks ok, will test/merge tomorrow.

@rodlie rodlie added this to the 1.0.0 milestone Nov 23, 2024
}
}
auto item = new QTreeWidgetItem(mTree);
mTree->blockSignals(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why block?

item->setText(1, QString::number(frame));
item->setText(0, QString::number(frame));
item->setData(0, Qt::UserRole, frame);
mTree->blockSignals(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does nothing? the block is removed before anything happens in mTree.

Copy link
Author

@pgilfernandez pgilfernandez Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember that I commented that:

if you have a marker in frame 0 and add a new one at any other frame with the "+" button of the Marker Editor, it deletes any marker created at frame 0...".

My research found that when creating a new row in the Markers Editor window, it launches too the itemChanged function, taking the current oframeand frame values that at that point are both just initialized with value 0 and ending up with deleting the marker at frame 0.
Blocking the signals for line 96, 97 and 98 ensures there is not update in that range but later when oframe and frame really take the values of the current "time line" position and the rest works as expected.

@rodlie rodlie removed this from the 1.0.0 milestone Nov 25, 2024
@rodlie
Copy link
Member

rodlie commented Nov 25, 2024

#343

@rodlie rodlie closed this Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants