diff options
| author | Richard Linden <none@none> | 2012-08-03 15:23:24 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2012-08-03 15:23:24 -0700 |
| commit | 06e1887f2f6ce341d1a4a22d4629031201e0f830 (patch) | |
| tree | cf14e31b14c79860530add85943b4c4a3135dd3e /indra/llui/llfolderviewmodel.cpp | |
| parent | c66164d4b469a4154134dc1a6b21f491ed8c31e6 (diff) | |
| parent | af8d113557105075af0e010c560ba9846d812aa0 (diff) | |
Automated merge with ssh://hg.lindenlab.com/richard/viewer-chui
Diffstat (limited to 'indra/llui/llfolderviewmodel.cpp')
| -rw-r--r-- | indra/llui/llfolderviewmodel.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/llui/llfolderviewmodel.cpp b/indra/llui/llfolderviewmodel.cpp index 6aa4a63edc..3593804554 100644 --- a/indra/llui/llfolderviewmodel.cpp +++ b/indra/llui/llfolderviewmodel.cpp @@ -51,3 +51,18 @@ void LLFolderViewModelCommon::filter() getFilter().setFilterCount(llclamp(LLUI::sSettingGroups["config"]->getS32("FilterItemsPerFrame"), 1, 5000)); mFolderView->getViewModelItem()->filter(getFilter()); } + +bool LLFolderViewModelItemCommon::hasFilterStringMatch() +{ + return mStringMatchOffsetFilter != std::string::npos; +} + +std::string::size_type LLFolderViewModelItemCommon::getFilterStringOffset() +{ + return mStringMatchOffsetFilter; +} + +std::string::size_type LLFolderViewModelItemCommon::getFilterStringSize() +{ + return mRootViewModel.getFilter().getFilterStringSize(); +} |
