1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

Minor fixes for Value components.

This commit is contained in:
Julian Storer 2010-01-15 20:54:57 +00:00
parent e73a0fb874
commit 38bd05de16
3 changed files with 8 additions and 2 deletions

View file

@ -52340,6 +52340,7 @@ TextEditor::TextEditor (const String& name,
TextEditor::~TextEditor()
{
textValue.referTo (Value());
clearInternal (0);
viewport = 0;
textHolder = 0;
@ -70831,7 +70832,9 @@ BooleanPropertyComponent::BooleanPropertyComponent (const String& name,
BooleanPropertyComponent::BooleanPropertyComponent (const Value& valueToControl,
const String& name,
const String& buttonText)
: PropertyComponent (name)
: PropertyComponent (name),
onText (buttonText),
offText (buttonText)
{
createButton();
button->setButtonText (buttonText);

View file

@ -1008,6 +1008,7 @@ TextEditor::TextEditor (const String& name,
TextEditor::~TextEditor()
{
textValue.referTo (Value());
clearInternal (0);
viewport = 0;
textHolder = 0;

View file

@ -46,7 +46,9 @@ BooleanPropertyComponent::BooleanPropertyComponent (const String& name,
BooleanPropertyComponent::BooleanPropertyComponent (const Value& valueToControl,
const String& name,
const String& buttonText)
: PropertyComponent (name)
: PropertyComponent (name),
onText (buttonText),
offText (buttonText)
{
createButton();
button->setButtonText (buttonText);