1
0
Fork 0
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:
ed 2018-01-22 11:29:23 +00:00
parent cd24d14000
commit 1f405d6cd5
2 changed files with 1 additions and 10 deletions

View file

@ -308,8 +308,7 @@ private:
};
//==============================================================================
class ExportersTreeRoot : public JucerTreeViewBase,
private ValueTree::Listener
class ExportersTreeRoot : public ProjectTreeItemBase
{
public:
ExportersTreeRoot (Project& p)

View file

@ -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);
}
};
//==============================================================================