Moves the tab from the inputed index to the given index.

        :param      fromIndex | <int>
                    toIndex   | <int>

def moveTab(self, fromIndex, toIndex):
        """
        Moves the tab from the inputed index to the given index.

        :param      fromIndex | <int>
                    toIndex   | <int>
        """
        try:
            item = self.layout().itemAt(fromIndex)
            self.layout().insertItem(toIndex, item.widget())
        except StandardError:
            pass