Make set_label() virtual so tscroll_label works properly.

This commit is contained in:
Mark de Wever 2008-09-21 10:42:12 +00:00
parent 11cccff142
commit cef0564be8
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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_. */