1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added method TabbedComponent::moveTab()

This commit is contained in:
ed 2017-01-09 10:22:33 +00:00
parent 2ad22dc6cf
commit 4c1d4f0081
2 changed files with 11 additions and 0 deletions

View file

@ -174,6 +174,12 @@ void TabbedComponent::removeTab (const int tabIndex)
}
}
void TabbedComponent::moveTab (const int currentIndex, const int newIndex, const bool animate)
{
contentComponents.move (currentIndex, newIndex);
tabs->moveTab (currentIndex, newIndex, animate);
}
int TabbedComponent::getNumTabs() const
{
return tabs->getNumTabs();