mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
TreeView: Allow built-in mouse handling to be enabled/disabled for custom components
This commit is contained in:
parent
ef7c3c6947
commit
b2f318a775
2 changed files with 8 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ public:
|
|||
auto newComp = std::make_unique<ItemComponent> (*treeItem);
|
||||
|
||||
addAndMakeVisible (*newComp);
|
||||
newComp->addMouseListener (this, false);
|
||||
newComp->addMouseListener (this, treeItem->customComponentUsesTreeViewMouseHandler());
|
||||
componentsToKeep.insert (newComp.get());
|
||||
|
||||
itemComponents.push_back (std::move (newComp));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue