mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Refactored some operators in Time and RelativeTime, and made the Time constructor explicit.
This commit is contained in:
parent
968d63bca6
commit
ece4205d3d
24 changed files with 421 additions and 540 deletions
|
|
@ -1368,18 +1368,24 @@ Component* Component::removeChildComponent (const int index, bool sendParentEven
|
|||
childComponentList_.remove (index);
|
||||
child->parentComponent_ = 0;
|
||||
|
||||
// (NB: there are obscure situations where a childShowing = false, but it still has the focus)
|
||||
// (NB: there are obscure situations where child->isShowing() = false, but it still has the focus)
|
||||
if (currentlyFocusedComponent == child || child->isParentOf (currentlyFocusedComponent))
|
||||
{
|
||||
const WeakReference<Component> thisPointer (this);
|
||||
|
||||
giveAwayFocus (sendChildEvents || currentlyFocusedComponent != child);
|
||||
|
||||
if (thisPointer == 0)
|
||||
return child;
|
||||
|
||||
if (sendParentEvents)
|
||||
{
|
||||
const WeakReference<Component> thisPointer (this);
|
||||
|
||||
giveAwayFocus (sendChildEvents || currentlyFocusedComponent != child);
|
||||
|
||||
if (thisPointer == 0)
|
||||
return child;
|
||||
|
||||
grabKeyboardFocus();
|
||||
}
|
||||
else
|
||||
{
|
||||
giveAwayFocus (sendChildEvents || currentlyFocusedComponent != child);
|
||||
}
|
||||
}
|
||||
|
||||
if (sendChildEvents)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue