1
0
Fork 0
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:
Julian Storer 2010-06-10 10:09:24 +01:00
parent cc45ec88f5
commit 6bcc8febca
25 changed files with 246 additions and 380 deletions

View file

@ -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*)