Jean-Marc Lasgouttes a écrit :
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> Lars, qt4 frontend needs a Menu::clear() method to
Abdelrazak> compile. Could you apply this please?
I'd be interested to learn about the context for this one. What do you
do with it exactly? I remember it is about caching actions, right? Do
you really get a noticeable speedup?
At the time, I had the feeling that menus opened faster yes. But I did
not measured it scientifically.
Beside, the code is a bit simpler in "QLPopupMenu.C" because of having a
private Menu member in "QLPopupMenu.h".
If you really don't want this, I can revert to a dynamically created
Menu but I thought that this clear() method is simple enough and is
logical together with size(), empty(), etc.
Abdel.