ToolbarButton bug


#1

Issue: clicking on a ToolbarButton doesn’t work as expected.
Since Drawables are now Components, they steal mouse events from the button, so mouse events get caught by the button only in the area that’s not occupied by the current Drawable.
You can verify this by clicking on the buttons in the Toolbar of the Widgets page in the demo.

A quick fix: add this to the ToolbarButton constructor

normalImage_->setInterceptsMouseClicks(false, false);
    
if(toggledOnImage != nullptr)
    toggledOnImage->setInterceptsMouseClicks(false, false);

#2

Drat! Thanks, I’ll get that sorted right away!