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

Used Button::onClick to simplify a bunch of library classes and demo code

This commit is contained in:
jules 2018-01-03 10:45:13 +00:00
parent be5f2d62c4
commit ce8b2d865a
52 changed files with 557 additions and 954 deletions

View file

@ -106,7 +106,7 @@ FileBrowserComponent::FileBrowserComponent (int flags_,
fileLabel.attachToComponent (&filenameBox, true);
addAndMakeVisible (goUpButton = getLookAndFeel().createFileBrowserGoUpButton());
goUpButton->addListener (this);
goUpButton->onClick = [this]() { goUp(); };
goUpButton->setTooltip (TRANS ("Go up to parent directory"));
if (previewComp != nullptr)
@ -482,11 +482,6 @@ void FileBrowserComponent::textEditorFocusLost (TextEditor&)
}
//==============================================================================
void FileBrowserComponent::buttonClicked (Button*)
{
goUp();
}
void FileBrowserComponent::comboBoxChanged (ComboBox*)
{
auto newText = currentPathBox.getText().trim().unquoted();