From cc1acaa0093c7498daf68956edfa4b7801eb9481 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 Oct 2014 11:36:20 +0300 Subject: Add tooltips to horizontcontainer. --- src/gui/widgets/horizontcontainer.cpp | 1 + src/gui/widgets/horizontcontainer.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/widgets/horizontcontainer.cpp b/src/gui/widgets/horizontcontainer.cpp index 8e3be9662..ff9a5b010 100644 --- a/src/gui/widgets/horizontcontainer.cpp +++ b/src/gui/widgets/horizontcontainer.cpp @@ -34,6 +34,7 @@ HorizontContainer::HorizontContainer(const Widget2 *const widget, { setHeight(height); addWidgetListener(this); + addMouseListener(this); } void HorizontContainer::add(Widget *widget) diff --git a/src/gui/widgets/horizontcontainer.h b/src/gui/widgets/horizontcontainer.h index bef3d0b00..e6e6d38f9 100644 --- a/src/gui/widgets/horizontcontainer.h +++ b/src/gui/widgets/horizontcontainer.h @@ -24,6 +24,7 @@ #include "gui/widgets/container.h" +#include "listeners/tooltiplistener.h" #include "listeners/widgetlistener.h" #include "localconsts.h" @@ -34,7 +35,8 @@ * This container places it's contents veritcally. */ class HorizontContainer final : public Container, - public WidgetListener + public WidgetListener, + public ToolTipListener { public: HorizontContainer(const Widget2 *const widget, -- cgit v1.2.3-70-g09d2