Switching tooltips on or off

I was trying to add a simple command to let a user decide if to show tooltips or not, but as far as I can see there is no way to switch tooltips on or off programmatically.

I could use TooltipWindow::setMillisecondsBeforeTipAppears(INT_MAX) to obtain a reasonable approximation of eternity, but then I would still miss a TooltipWindow::getMillisecondsBeforeTipAppears() method, so I would have to declare a flag to keep track of this and then translate its state into setMillisecondsBeforeTipAppears() calls.

Am I missing something?

I think the simplest way to do it would be to just delete the TooltipWindow when you don’t want it.

was so simple…
Thanks