mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Use lambda callbacks instead of listeners with Slider, Button, Label, ComboBox and TextEditor classes
This commit is contained in:
parent
6d8d90e9d8
commit
e690350df3
30 changed files with 114 additions and 258 deletions
|
|
@ -239,14 +239,14 @@ void ChoicePropertyComponent::refresh()
|
|||
if (! comboBox.isVisible())
|
||||
{
|
||||
createComboBox();
|
||||
comboBox.addListener (this);
|
||||
comboBox.onChange = [this] { changeIndex(); };
|
||||
}
|
||||
|
||||
comboBox.setSelectedId (getIndex() + 1, dontSendNotification);
|
||||
}
|
||||
}
|
||||
|
||||
void ChoicePropertyComponent::comboBoxChanged (ComboBox*)
|
||||
void ChoicePropertyComponent::changeIndex()
|
||||
{
|
||||
if (isCustomClass)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue