diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-18 02:32:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-18 02:32:32 +0300 |
commit | 4a819f03a40d0a402fda465dc3656cfe53317384 (patch) | |
tree | bb16c94679f17480fbc0b7d7b989773a8af73f2d /src/gui/widgets/browserbox.h | |
parent | be8edccc37bb2ce0b17cc950129cd57d65aac49a (diff) | |
download | plus-4a819f03a40d0a402fda465dc3656cfe53317384.tar.gz plus-4a819f03a40d0a402fda465dc3656cfe53317384.tar.bz2 plus-4a819f03a40d0a402fda465dc3656cfe53317384.tar.xz plus-4a819f03a40d0a402fda465dc3656cfe53317384.zip |
Fix asserts in browserbox on resize.
Diffstat (limited to 'src/gui/widgets/browserbox.h')
-rw-r--r-- | src/gui/widgets/browserbox.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index aa5a70b0e..a80729cb5 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -24,8 +24,6 @@ #ifndef GUI_WIDGETS_BROWSERBOX_H #define GUI_WIDGETS_BROWSERBOX_H -#include "listeners/mouselistener.h" - #include "enums/simpletypes/opaque.h" #include "enums/gui/browserboxmode.h" @@ -36,6 +34,9 @@ #include "gui/widgets/linepart.h" #include "gui/widgets/widget.h" +#include "listeners/mouselistener.h" +#include "listeners/widgetlistener.h" + #include "localconsts.h" class LinkHandler; @@ -45,7 +46,8 @@ class LinkHandler; * parent conteiner. */ class BrowserBox final : public Widget, - public MouseListener + public MouseListener, + public WidgetListener { public: /** @@ -155,6 +157,8 @@ class BrowserBox final : public Widget, void selectSelection(); + void widgetResized(const Event &event) override final; + private: int calcHeight() A_WARN_UNUSED; |