mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a method Component::getChildren() to allow them to be iterated with a range-based for loop, and used this in appropriate places around the codebase
This commit is contained in:
parent
663af835f9
commit
4e5f005421
21 changed files with 182 additions and 223 deletions
|
|
@ -221,8 +221,8 @@ void TabbedButtonBar::setOrientation (const Orientation newOrientation)
|
|||
{
|
||||
orientation = newOrientation;
|
||||
|
||||
for (int i = getNumChildComponents(); --i >= 0;)
|
||||
getChildComponent (i)->resized();
|
||||
for (auto* child : getChildren())
|
||||
child->resized();
|
||||
|
||||
resized();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue