diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-10-09 12:35:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 12:35:53 +0300 |
commit | 683e96ed61692d26b3eba2b08fe9978de998cb41 (patch) | |
tree | 08aad8e6772ac5405f0cb2c0e027b5b201de4d09 /indra/llui | |
parent | b2fde0945453e0bf530916264f2c330ec09162b2 (diff) |
SL-20380 Add group notices button as hover button on Groups floater
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/llaccordionctrl.cpp | 17 | ||||
-rw-r--r-- | indra/llui/llaccordionctrl.h | 2 |
2 files changed, 19 insertions, 0 deletions
diff --git a/indra/llui/llaccordionctrl.cpp b/indra/llui/llaccordionctrl.cpp index 809d72208f..d0146910b6 100644 --- a/indra/llui/llaccordionctrl.cpp +++ b/indra/llui/llaccordionctrl.cpp @@ -936,3 +936,20 @@ S32 LLAccordionCtrl::calcExpandedTabHeight(S32 tab_index /* = 0 */, S32 availabl expanded_tab_height /= num_expanded; return expanded_tab_height; } + +void LLAccordionCtrl::collapseAllTabs() +{ + if (mAccordionTabs.size() > 0) + { + for (size_t i = 0; i < mAccordionTabs.size(); ++i) + { + LLAccordionCtrlTab *tab = mAccordionTabs[i]; + + if (tab->getDisplayChildren()) + { + tab->setDisplayChildren(false); + } + } + arrange(); + } +} diff --git a/indra/llui/llaccordionctrl.h b/indra/llui/llaccordionctrl.h index 2828254472..cc49ac8086 100644 --- a/indra/llui/llaccordionctrl.h +++ b/indra/llui/llaccordionctrl.h @@ -122,6 +122,8 @@ public: void setComparator(const LLTabComparator* comp) { mTabComparator = comp; } void sort(); + void collapseAllTabs(); + /** * Sets filter substring as a search_term for help text when there are no any visible tabs. */ |