diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-13 00:12:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-13 00:12:19 +0300 |
commit | 906331c5a512e54424b148a2a89590bc03a704ff (patch) | |
tree | 16ca1feda8dc2f005424746421dd455b8b3c6c55 /src/gui/widgets/itemcontainer.h | |
parent | b2a22c500de97b68f0684313b2e6304bf70b728d (diff) | |
download | manaverse-906331c5a512e54424b148a2a89590bc03a704ff.tar.gz manaverse-906331c5a512e54424b148a2a89590bc03a704ff.tar.bz2 manaverse-906331c5a512e54424b148a2a89590bc03a704ff.tar.xz manaverse-906331c5a512e54424b148a2a89590bc03a704ff.zip |
Change height in item containers if some items hidden by filter.
Diffstat (limited to 'src/gui/widgets/itemcontainer.h')
-rw-r--r-- | src/gui/widgets/itemcontainer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/itemcontainer.h b/src/gui/widgets/itemcontainer.h index ba640d374..c992c43f5 100644 --- a/src/gui/widgets/itemcontainer.h +++ b/src/gui/widgets/itemcontainer.h @@ -123,7 +123,7 @@ class ItemContainer final : public Widget, void setName(const std::string &str) { mName = str; } - void updateMatrix(); + int updateMatrix(); bool getClickCount() const noexcept2 A_WARN_UNUSED { return mClicks != 0; } @@ -202,6 +202,7 @@ class ItemContainer final : public Widget, SelectionListenerList mSelectionListeners; int mGridColumns; int mGridRows; + int mDrawRows; int mSelectedIndex; int mLastUsedSlot; int mTag; |