Returns the minimum length for this ruler based on its notches and the
        given orientation.
        
        :param      orientation | <Qt.Orientation>
        
        :return     <int>

def minLength( self, orientation ):
        """
        Returns the minimum length for this ruler based on its notches and the
        given orientation.
        
        :param      orientation | <Qt.Orientation>
        
        :return     <int>
        """
        padding         = self.padStart() + self.padEnd()
        count           = len(self.notches())
        notch_padding   = self.notchPadding()
        
        if ( orientation == Qt.Horizontal ):
            section     = self.maxNotchSize(Qt.Vertical)
        else:
            section     = self.maxNotchSize(Qt.Horizontal)
        
        return notch_padding * count + section * count + padding