From d599ae437a5966d3730939c80811763b62e709b1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Jun 2017 19:10:28 +0300 Subject: Imrove staticbrowserbox. Fix wrong width in some cases. Improved performance. Removed useless code. --- src/gui/widgets/staticbrowserbox.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/gui/widgets/staticbrowserbox.h') diff --git a/src/gui/widgets/staticbrowserbox.h b/src/gui/widgets/staticbrowserbox.h index e2d2bc1f9..7698ec5ff 100644 --- a/src/gui/widgets/staticbrowserbox.h +++ b/src/gui/widgets/staticbrowserbox.h @@ -34,7 +34,6 @@ #include "gui/widgets/widget.h" #include "listeners/mouselistener.h" -#include "listeners/widgetlistener.h" #include "localconsts.h" @@ -45,8 +44,7 @@ class LinkHandler; * parent conteiner. */ class StaticBrowserBox final : public Widget, - public MouseListener, - public WidgetListener + public MouseListener { public: /** @@ -142,20 +140,13 @@ class StaticBrowserBox final : public Widget, void setForegroundColorAll(const Color &color1, const Color &color2); - unsigned int getDataWidth() const noexcept2 A_WARN_UNUSED - { return mDataWidth; } - void moveSelectionUp(); void moveSelectionDown(); void selectSelection(); - void widgetResized(const Event &event) override final; - private: - int calcHeight() A_WARN_UNUSED; - typedef TextRows::iterator TextRowIterator; typedef TextRows::const_iterator TextRowCIter; TextRows mTextRows; @@ -180,7 +171,6 @@ class StaticBrowserBox final : public Widget, int mPadding; unsigned int mNewLinePadding; int mItemPadding; - unsigned int mDataWidth; Color mHighlightColor; Color mHyperLinkColor; -- cgit v1.2.3-60-g2f50