1
0
Fork 0
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:
jules 2013-07-08 13:05:51 +01:00
parent 51b9d1ed98
commit eb646f8c42
24 changed files with 119 additions and 95 deletions

View file

@ -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);
}