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:
parent
e73a0fb874
commit
38bd05de16
3 changed files with 8 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1008,6 +1008,7 @@ TextEditor::TextEditor (const String& name,
|
|||
|
||||
TextEditor::~TextEditor()
|
||||
{
|
||||
textValue.referTo (Value());
|
||||
clearInternal (0);
|
||||
viewport = 0;
|
||||
textHolder = 0;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue