void LLGroupList::addNewItem(const LLUUID& id, const std::string& name, const LLUUID& icon_id, EAddPosition pos) { LLGroupListItem* item = new LLGroupListItem(); item->setGroupID(id); item->setName(name, mNameFilter); item->setGroupIconID(icon_id); item->getChildView("info_btn")->setVisible( false); item->getChildView("profile_btn")->setVisible( false); item->setGroupIconVisible(mShowIcons); addItem(item, id, pos); // setCommentVisible(false); }
// <FS:Ansariel> Mark groups hidden in profile //void LLGroupList::addNewItem(const LLUUID& id, const std::string& name, const LLUUID& icon_id, EAddPosition pos) void LLGroupList::addNewItem(const LLUUID& id, const std::string& name, const LLUUID& icon_id, EAddPosition pos, bool hiddenInProfile) { LLGroupListItem* item = new LLGroupListItem(mForAgent && mShowIcons); item->setGroupID(id); item->setName(name, mNameFilter); item->setGroupIconID(icon_id); item->getChildView("info_btn")->setVisible( false); item->getChildView("profile_btn")->setVisible( false); item->setGroupIconVisible(mShowIcons); // <FS:Ansariel> Mark groups hidden in profile if (hiddenInProfile) { item->markHiddenInProfile(); } // </FS:Ansariel> Mark groups hidden in profile addItem(item, id, pos); // setCommentVisible(false); }