mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Projucer: Some reshuffling in the exporters tree to allow build configurations to be deleted with the backspace key
This commit is contained in:
parent
cd24d14000
commit
1f405d6cd5
2 changed files with 1 additions and 10 deletions
|
|
@ -308,8 +308,7 @@ private:
|
|||
};
|
||||
|
||||
//==============================================================================
|
||||
class ExportersTreeRoot : public JucerTreeViewBase,
|
||||
private ValueTree::Listener
|
||||
class ExportersTreeRoot : public ProjectTreeItemBase
|
||||
{
|
||||
public:
|
||||
ExportersTreeRoot (Project& p)
|
||||
|
|
|
|||
|
|
@ -125,14 +125,6 @@ struct ExportersTreePanel : public TreePanelBase
|
|||
setRoot (new TreeItemTypes::ExportersTreeRoot (p));
|
||||
tree.setRootItemVisible (false);
|
||||
}
|
||||
|
||||
void deleteSelectedItems() override
|
||||
{
|
||||
for (int i = rootItem->getNumSubItems() - 1; i >= 0; --i)
|
||||
if (rootItem->getSubItem (i)->isSelected())
|
||||
if (auto* root = dynamic_cast<TreeItemTypes::ExportersTreeRoot*> (rootItem.get()))
|
||||
root->removeExporter (i);
|
||||
}
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue