return the new tab index from TabWidget.moveTab