mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
New enum: NotificationType, to indicate whether to send a change message or not (and whether it should be async). Updates to ListBox, TreeView and Slider methods to use this type instead of bools.
This commit is contained in:
parent
ab7c03a99e
commit
5ed768e953
17 changed files with 172 additions and 116 deletions
|
|
@ -1271,7 +1271,8 @@ void TreeViewItem::deselectAllRecursively()
|
|||
}
|
||||
|
||||
void TreeViewItem::setSelected (const bool shouldBeSelected,
|
||||
const bool deselectOtherItemsFirst)
|
||||
const bool deselectOtherItemsFirst,
|
||||
const NotificationType notify)
|
||||
{
|
||||
if (shouldBeSelected && ! canBeSelected())
|
||||
return;
|
||||
|
|
@ -1285,7 +1286,8 @@ void TreeViewItem::setSelected (const bool shouldBeSelected,
|
|||
if (ownerView != nullptr)
|
||||
ownerView->repaint();
|
||||
|
||||
itemSelectionChanged (shouldBeSelected);
|
||||
if (notify != dontSendNotification)
|
||||
itemSelectionChanged (shouldBeSelected);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue