diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-26 19:10:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-26 19:37:23 +0300 |
commit | d599ae437a5966d3730939c80811763b62e709b1 (patch) | |
tree | 4bc20b96914553aeea18de292628815bf24c4236 /src/gui/widgets/staticbrowserbox.h | |
parent | ef6a173d875114f31509823541c972667d987f87 (diff) | |
download | manaverse-d599ae437a5966d3730939c80811763b62e709b1.tar.gz manaverse-d599ae437a5966d3730939c80811763b62e709b1.tar.bz2 manaverse-d599ae437a5966d3730939c80811763b62e709b1.tar.xz manaverse-d599ae437a5966d3730939c80811763b62e709b1.zip |
Imrove staticbrowserbox.
Fix wrong width in some cases.
Improved performance.
Removed useless code.
Diffstat (limited to 'src/gui/widgets/staticbrowserbox.h')
-rw-r--r-- | src/gui/widgets/staticbrowserbox.h | 12 |
1 files changed, 1 insertions, 11 deletions
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; |