Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proper speedup for updateComponent #5620
- new API updateComponentStr that can be called directly via Qt API - use the new Qt API from OMEdit - fix the differences between NFModelicaBuiltin.mo and ModelicaBuiltin.mo
- Loading branch information
Showing
5 changed files
with
235 additions
and
86 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
76de683
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.
Its a bit late but shouldn't the new API be called
updateConnectionAnnotation
instead ofupdateConnectionStr
?Also why not
ExpressionOrModification
instead ofinput String annotate
.76de683
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.
Because it seem that it didn't want to do a Qt API for a function with weird input types, so i changed that to a string. I don't know how to fix it for other types so I made this hack for now.
You can see I also kept updateConnection and that one doesn't have a Qt API.
Of course, we can update the name to updateConnectionAnnotation (is only used by OMEdit right now, so we can do whatever).
76de683
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.
Oh yes Qt API doesn't handle that so then you have to use sendExpression.
I suggest to change the API name
updateConnectionAnnotation
.