From e2210e88b0cf4620b820aea083c231be3eadb80a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 Oct 2014 01:01:19 +0300 Subject: Use tooltiplistener in labels. --- src/gui/widgets/label.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/widgets/label.cpp') diff --git a/src/gui/widgets/label.cpp b/src/gui/widgets/label.cpp index 125adbce9..b1ec8e61e 100644 --- a/src/gui/widgets/label.cpp +++ b/src/gui/widgets/label.cpp @@ -76,6 +76,7 @@ int Label::mInstances = 0; Label::Label(const Widget2 *const widget) : Widget(widget), + ToolTipListener(), mCaption(), mAlignment(Graphics::LEFT), mPadding(0) @@ -86,6 +87,7 @@ Label::Label(const Widget2 *const widget) : Label::Label(const Widget2 *const widget, const std::string &caption) : Widget(widget), + ToolTipListener(), mCaption(caption), mAlignment(Graphics::LEFT), mPadding(0) @@ -110,10 +112,12 @@ Label::~Label() if (theme) theme->unload(mSkin); } + removeMouseListener(this); } void Label::init() { + addMouseListener(this); mAllowLogic = false; mForegroundColor = getThemeColor(Theme::LABEL); mForegroundColor2 = getThemeColor(Theme::LABEL_OUTLINE); -- cgit v1.2.3-60-g2f50