Fix for tooltips not showing on labels and images, courtesy of gfgtdf

This commit is contained in:
Charles Dang 2016-08-13 08:15:45 +11:00
parent f5210fa39d
commit 450f16ffb8
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ public:
return label();
}
virtual bool can_mouse_focus() const override { return false; }
virtual bool can_mouse_focus() const override { return !tooltip().empty(); }
/***** ***** ***** ***** layout functions ***** ***** ***** *****/

View file

@ -68,7 +68,7 @@ public:
void set_link_color(const std::string & color);
virtual bool can_mouse_focus() const override { return false; }
virtual bool can_mouse_focus() const override { return !tooltip().empty(); }
private:
/**
* Possible states of the widget.