summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-18 11:36:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-18 11:36:20 +0300
commitcc1acaa0093c7498daf68956edfa4b7801eb9481 (patch)
tree39249f91e245595d274b20a18b5ca53db6aedd94 /src/gui
parent0971280bb608bcf9060bc9265c128f38e1a8058e (diff)
downloadplus-cc1acaa0093c7498daf68956edfa4b7801eb9481.tar.gz
plus-cc1acaa0093c7498daf68956edfa4b7801eb9481.tar.bz2
plus-cc1acaa0093c7498daf68956edfa4b7801eb9481.tar.xz
plus-cc1acaa0093c7498daf68956edfa4b7801eb9481.zip
Add tooltips to horizontcontainer.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/horizontcontainer.cpp1
-rw-r--r--src/gui/widgets/horizontcontainer.h4
2 files changed, 4 insertions, 1 deletions
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,