mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
Minor code clean-ups.
This commit is contained in:
parent
cc45ec88f5
commit
6bcc8febca
25 changed files with 246 additions and 380 deletions
|
|
@ -35,19 +35,18 @@ ButtonPropertyComponent::ButtonPropertyComponent (const String& name,
|
|||
const bool triggerOnMouseDown)
|
||||
: PropertyComponent (name)
|
||||
{
|
||||
addAndMakeVisible (button = new TextButton (String::empty));
|
||||
button->setTriggeredOnMouseDown (triggerOnMouseDown);
|
||||
button->addButtonListener (this);
|
||||
addAndMakeVisible (&button);
|
||||
button.setTriggeredOnMouseDown (triggerOnMouseDown);
|
||||
button.addButtonListener (this);
|
||||
}
|
||||
|
||||
ButtonPropertyComponent::~ButtonPropertyComponent()
|
||||
{
|
||||
deleteAllChildren();
|
||||
}
|
||||
|
||||
void ButtonPropertyComponent::refresh()
|
||||
{
|
||||
button->setButtonText (getButtonText());
|
||||
button.setButtonText (getButtonText());
|
||||
}
|
||||
|
||||
void ButtonPropertyComponent::buttonClicked (Button*)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue