-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
Just a quick demo to show you what I did with in this PR: markers_improvements.mp4 |
The code looks ok, will test/merge tomorrow. |
} | ||
} | ||
auto item = new QTreeWidgetItem(mTree); | ||
mTree->blockSignals(true); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 oframe
and 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.
I have polished the Markers editor:
It solves macOS Support #272 (comment)
I hope everything is fine
=)
Cheers