diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-01 23:59:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-02 01:42:48 +0300 |
commit | 8aa68056aec80c775a3ddb152bea8a90a7097199 (patch) | |
tree | 2a131c77e27ea4d5a7a3e3d5102f0bbc12957569 /src/gui/widgets/basiccontainer.cpp | |
parent | 96805601e06e6ed6f7b5aaffc3bbb22dd9e8d58a (diff) | |
download | manaverse-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.gz manaverse-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.bz2 manaverse-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.xz manaverse-8aa68056aec80c775a3ddb152bea8a90a7097199.zip |
Add actions for switch to next/prev tab in inventory.
Keys not assigned.
Diffstat (limited to 'src/gui/widgets/basiccontainer.cpp')
-rw-r--r-- | src/gui/widgets/basiccontainer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/basiccontainer.cpp b/src/gui/widgets/basiccontainer.cpp index 4803373f2..a66a244a0 100644 --- a/src/gui/widgets/basiccontainer.cpp +++ b/src/gui/widgets/basiccontainer.cpp @@ -372,3 +372,13 @@ void BasicContainer::setInternalFocusHandler(FocusHandler* focusHandler) (*iter)->setFocusHandler(mInternalFocusHandler); } } + +Widget *BasicContainer::findFirstWidget(const std::set<Widget*> &list) +{ + FOR_EACHR (WidgetListReverseIterator, iter, mWidgets) + { + if (list.find(*iter) != list.end()) + return *iter; + } + return nullptr; +} |