mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Deprecated some old bool notification mode parameters, and replaced them with NotificationType values in the ComboBox and Button classes.
This commit is contained in:
parent
51b9d1ed98
commit
eb646f8c42
24 changed files with 119 additions and 95 deletions
|
|
@ -54,7 +54,7 @@ BooleanPropertyComponent::~BooleanPropertyComponent()
|
|||
|
||||
void BooleanPropertyComponent::setState (const bool newState)
|
||||
{
|
||||
button.setToggleState (newState, true);
|
||||
button.setToggleState (newState, sendNotification);
|
||||
}
|
||||
|
||||
bool BooleanPropertyComponent::getState() const
|
||||
|
|
@ -75,7 +75,7 @@ void BooleanPropertyComponent::paint (Graphics& g)
|
|||
|
||||
void BooleanPropertyComponent::refresh()
|
||||
{
|
||||
button.setToggleState (getState(), false);
|
||||
button.setToggleState (getState(), dontSendNotification);
|
||||
button.setButtonText (button.getToggleState() ? onText : offText);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue