Allow setting the label of a flyout button dynamically in code.
This commit is contained in:
@@ -173,4 +173,8 @@ void LLFlyoutButton::setToggleState(BOOL state)
|
||||
mToggleState = state;
|
||||
}
|
||||
|
||||
void LLFlyoutButton::setLabel(const std::string& label)
|
||||
{
|
||||
mActionButton->setLabel(label);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user