-
-
Notifications
You must be signed in to change notification settings - Fork 985
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
New context menu automation items #7317
base: master
Are you sure you want to change the base?
Conversation
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.
I see quite a few beginner mistakes here. Pointed out those. Nothing major, just bad practices. Also look into the codefactor blank line one.
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.
Do you need that else there?
There's lots more nesting going on. I am a bit tired to nitpick everything |
Feel free to nitpick. I'm open to learn new things. |
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.
First pass of changes that should be made.
EDIT: Looks like my page didn't refresh with the latest commits for some reason. Not sure why. 🤔
Because I pushed the changes right before when you completed your review. |
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.
More nitpicks.
{ | ||
// getting nearest node | ||
// in the clip that starts before this | ||
for (auto it = clipBefore->getTimeMap().begin(); it != clipBefore->getTimeMap().end(); ++it) |
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.
Range based loop here.
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 loop can not be replaced, because it
would be a pointer to a typename T
node instead of a key.
Qt provides a key()
function that finds a key for a given T
, but that is not optimized.
Qt documentation:
This function can be slow linear time, because QMap's internal data structure is optimized for fast lookup by key, not by value.
closes #3112
This PR adds new context menu options for
automatableModels
to improve the automation workflow.These options are the following:
In my view these options will make the automation system faster to use.