summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-08-25 16:46:52 -0700
committerRichard Linden <none@none>2010-08-25 16:46:52 -0700
commita0b15c827ee7704c1557c9c882ec236d5d67f948 (patch)
treeb3e54762cd1d061887f993137c62dd5acf934ccc /indra
parent92db224e8624c22eb9e8516662685c68cb819e69 (diff)
outfits accordions now have proper contents
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lloutfitslist.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/indra/newview/lloutfitslist.cpp b/indra/newview/lloutfitslist.cpp
index 7429386871..8a2073e661 100644
--- a/indra/newview/lloutfitslist.cpp
+++ b/indra/newview/lloutfitslist.cpp
@@ -68,9 +68,18 @@ bool LLOutfitTabNameComparator::compare(const LLAccordionCtrlTab* tab1, const LL
return name1 < name2;
}
-const LLAccordionCtrlTab::Params& get_accordion_tab_params()
+struct outfit_accordion_tab_params : public LLInitParam::Block<outfit_accordion_tab_params, LLAccordionCtrlTab::Params>
{
- static LLAccordionCtrlTab::Params tab_params;
+ Mandatory<LLWearableItemsList::Params> wearable_list;
+
+ outfit_accordion_tab_params()
+ : wearable_list("wearable_items_list")
+ {}
+};
+
+const outfit_accordion_tab_params& get_accordion_tab_params()
+{
+ static outfit_accordion_tab_params tab_params;
static bool initialized = false;
if (!initialized)
{
@@ -466,8 +475,11 @@ void LLOutfitsList::refreshList(const LLUUID& category_id)
std::string name = cat->getName();
- LLAccordionCtrlTab::Params tab_params(get_accordion_tab_params());
+ outfit_accordion_tab_params tab_params(get_accordion_tab_params());
LLAccordionCtrlTab* tab = LLUICtrlFactory::create<LLAccordionCtrlTab>(tab_params);
+ LLWearableItemsList* wearable_list = LLUICtrlFactory::create<LLWearableItemsList>(tab_params.wearable_list);
+ wearable_list->setShape(tab->getLocalRect());
+ tab->addChild(wearable_list);
tab->setName(name);
tab->setTitle(name);