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:
parent
be5f2d62c4
commit
ce8b2d865a
52 changed files with 557 additions and 954 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue