Allow setting the label of a flyout button dynamically in code.

This commit is contained in:
Inusaito Sayori
2015-05-14 07:30:49 -04:00
parent 361d3542a4
commit a974ca096c
2 changed files with 5 additions and 0 deletions

View File

@@ -173,4 +173,8 @@ void LLFlyoutButton::setToggleState(BOOL state)
mToggleState = state;
}
void LLFlyoutButton::setLabel(const std::string& label)
{
mActionButton->setLabel(label);
}

View File

@@ -45,6 +45,7 @@ public:
virtual void setEnabled(BOOL enabled);
void setToggleState(BOOL state);
void setLabel(const std::string& label); // Not to be confused with LLComboBox::setLabel
virtual LLXMLNodePtr getXML(bool save_children = true) const;
static LLView* fromXML(LLXMLNodePtr node, LLView* parent, LLUICtrlFactory* factory);