diff options
author | Don Kjer <don@lindenlab.com> | 2012-07-26 22:59:30 +0000 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2012-07-26 22:59:30 +0000 |
commit | bd1b664d45a75e57209e06b288849c0536d00151 (patch) | |
tree | 863ba132ec822f7f2a3feaf5a934f298374179cd /indra/llui/llscrolllistctrl.cpp | |
parent | cff3469d46d297fbec34bc0d648588e900cd255c (diff) | |
parent | 124f45d20ecf45c43a9f277be89de2e1fec40b8b (diff) |
Merge viewer-development -> viewer-horde-fixes
Diffstat (limited to 'indra/llui/llscrolllistctrl.cpp')
-rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp index b3e1b63db5..802914e25b 100644 --- a/indra/llui/llscrolllistctrl.cpp +++ b/indra/llui/llscrolllistctrl.cpp @@ -389,6 +389,22 @@ std::vector<LLScrollListItem*> LLScrollListCtrl::getAllSelected() const return ret; } +S32 LLScrollListCtrl::getNumSelected() const +{ + S32 numSelected = 0; + + for(item_list::const_iterator iter = mItemList.begin(); iter != mItemList.end(); ++iter) + { + LLScrollListItem* item = *iter; + if (item->getSelected()) + { + ++numSelected; + } + } + + return numSelected; +} + S32 LLScrollListCtrl::getFirstSelectedIndex() const { S32 CurSelectedIndex = 0; |