Fix for tooltips not showing on labels and images, courtesy of gfgtdf
This commit is contained in:
parent
f5210fa39d
commit
450f16ffb8
2 changed files with 2 additions and 2 deletions
|
@ -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 ***** ***** ***** *****/
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue