parameters: (self)
docstring: relocates the right-aligned buttons depending on the toolbar size
docstring_summary: relocates the right-aligned buttons depending on the toolbar size
docstring_tokens: relocates the right - aligned buttons depending on the toolbar size
function: def relocate(self):
          """relocates the right-aligned buttons depending on the toolbar size"""
          if self.baseWidget.geometry().width() < 400:
              self.layout.setDirection(QtGui.QBoxLayout.TopToBottom)
          else:
              self.layout.setDirection(QtGui.QBoxLayout.LeftToRight)
function_tokens: def relocate ( self ) : if self . baseWidget . geometry ( ) . width ( ) < 400 : self . layout . setDirection ( QtGui . QBoxLayout . TopToBottom ) else : self . layout . setDirection ( QtGui . QBoxLayout . LeftToRight )