mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 09:59:29 +00:00
Make set_label() virtual so tscroll_label works properly.
This commit is contained in:
parent
11cccff142
commit
cef0564be8
@ -170,7 +170,7 @@ public:
|
||||
{ use_tooltip_on_label_overflow_ = use_tooltip; }
|
||||
|
||||
const t_string& label() const { return label_; }
|
||||
void set_label(const t_string& label);
|
||||
virtual void set_label(const t_string& label);
|
||||
|
||||
const t_string& tooltip() const { return tooltip_; }
|
||||
// Note setting the tooltip_ doesn't dirty an object.
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
/** Inherited from twidget. */
|
||||
bool has_vertical_scrollbar() const { return true; }
|
||||
|
||||
/** *OVERRIDDEN* from tcontrol */
|
||||
/** Inherited from tcontrol. */
|
||||
void set_label(const t_string& label);
|
||||
|
||||
/** Inherited from tcontainer_. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user