diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-02-18 18:33:28 +0200 | 
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-02-18 18:33:28 +0200 | 
| commit | cfb2b95c8ca3dbd9761bbd2124cf0361a4832bce (patch) | |
| tree | f7fa54e68d586b5688797b57ac49b4a5f569e041 /indra/llui | |
| parent | fe3a56f343ca04b2bea203ff2adeeffb9d2ffeda (diff) | |
SL-12641 Remade 'Pick: Texture' floater to eliminate translation overlaps
Diffstat (limited to 'indra/llui')
| -rw-r--r-- | indra/llui/llcombobox.cpp | 8 | ||||
| -rw-r--r-- | indra/llui/llcombobox.h | 2 | 
2 files changed, 10 insertions, 0 deletions
| diff --git a/indra/llui/llcombobox.cpp b/indra/llui/llcombobox.cpp index c7f0326ed4..52dc908655 100644 --- a/indra/llui/llcombobox.cpp +++ b/indra/llui/llcombobox.cpp @@ -514,6 +514,14 @@ S32 LLComboBox::getCurrentIndex() const  	return -1;  } +void LLComboBox::setEnabledByValue(const LLSD& value, BOOL enabled) +{ +    LLScrollListItem *found = mList->getItem(value); +    if (found) +    { +        found->setEnabled(enabled); +    } +}  void LLComboBox::createLineEditor(const LLComboBox::Params& p)  { diff --git a/indra/llui/llcombobox.h b/indra/llui/llcombobox.h index 7d38c051a5..4af3313162 100644 --- a/indra/llui/llcombobox.h +++ b/indra/llui/llcombobox.h @@ -158,6 +158,8 @@ public:  	BOOL			setCurrentByIndex( S32 index );  	S32				getCurrentIndex() const; +	void			setEnabledByValue(const LLSD& value, BOOL enabled); +  	void			createLineEditor(const Params&);  	//======================================================================== | 
