Hmm, I do not know why this happens, probably i'm lacking some proper skills, cause in my implementation, the name is set when the tooltip is created, so i do not get why the name is duplicated while the description is not... I'll ping someone with c++ skills:
here is the code: https://github.com/FreeCAD/FreeCAD/comp ... s?expand=1openBrain wrote: help: in the tooltip experiment of the above post, we got duplicated titles, can you give a look to my poor c++ implementation?
This would be easier to standardize, also if a quite boring task- Some tooltips already have a name in the tooltip, resulting in multiple names
I don't think that implementing it in action.cpp will suffer of this...- Tooltips that have formatting (break lines, etc.) get put in a single line
You mean like the & character? If we use whatsThis() istead of text() we get a title that have exactly the name of the tool in the wiki and in the documentation, in english. I think that's a more convenient title for the command.- Some tooltips have hard-coded hotkeys that don't change when you change the hotkey in the parameters.
More thoughts:
I have a concern regarding the size of the title: you used < p style = \"font-size:20px\">, but this is really depending on your screen resolution, so perhaps it's not good to hard-code that.
I also tried to put an hiperlink into the tooltip, but this seems to require to write a custom tooltip object, that is really over my possibilities
Too kind, if this is supposed to go into the master, we probably need some serious work on it, but i'm happy to have played with this for an hour or twoGreat job on implementing this! Not having toolnames is much worse than having double names