On Thu, Jul 25, 2002 at 12:41:09AM +0200, Jean-Marc Lasgouttes wrote: > Did you actually try to see whether a full menu redo is a problem?
No, and I should (this is the 2nd time this week I have been caught optimising prematurely ...) > due to that (and the code can be optimized). I am worried that, > if we have 'clever' code for the update, it will become out of sync. Right, it's a risk ... > regenerate the menu system after each action, mostly. What you could > try first is to generate the menus at each Menubar::update() and see > what happens. Hmm, but of course you will have timing problems with > TOC... Can't you generate the menus on the fly like with xforms? It > seems ugly, but it works well in practice. My reticence to do this is simple: I do not trust this to be reliable across Qt/Windows, Qt 3.x, Qt 4.x, etc. Also, it requires a reasonably ugly hack, and I haven't actually tried it ... regards john -- "Hungarian notation is the tactical nuclear weapon of source code obfuscation techniques." - Roedy Green