'Sets the orientation of the title bar for this Dock.
Must be one of \'auto\', \'horizontal\', or \'vertical\'.
By default (\'auto\'), the orientation is determined
based on the aspect ratio of the Dock.'

def setOrientation(self, o='auto', force=False):

    if ((o == 'auto') and self.autoOrient):
        if (self.container().type() == 'tab'):
            o = 'horizontal'
        elif (self.width() > (self.height() * 1.5)):
            o = 'vertical'
        else:
            o = 'horizontal'
    if (force or (self.orientation != o)):
        self.orientation = o
        self.label.setOrientation(o)
        self.updateStyle()
