parameters: (obj, nChar)
return_statement: return (10 + szWidth*1.05), 1.5*szHeight
docstring: Approximates the size of a row text, nchars long, adds some margin
docstring_summary: Approximates the size of a row text, nchars long, adds some margin
docstring_tokens: Approximates the size of a row text nchars long adds some margin
function: def relaxedSizeNChar(obj, nChar):
     """
     Approximates the size of a row text, nchars long, adds some margin
     """
     try:
        fm = QFontMetricsF(QFont(obj.font()))
     except AttributeError:
        fm = QFontMetricsF(QFont(obj))
     szWidth,szHeight = fm.boundingRect('abcfg ijklm').width(), fm.height()
     szWidth = int(szWidth * nChar/10.0 + 0.5)
     return (10 + szWidth*1.05), 1.5*szHeight
function_tokens: def relaxedSizeNChar ( obj , nChar ) : try : fm = QFontMetricsF ( QFont ( obj . font ( ) ) ) except AttributeError : fm = QFontMetricsF ( QFont ( obj ) ) szWidth , szHeight = fm . boundingRect ( 'abcfg ijklm' ) . width ( ) , fm . height ( ) szWidth = int ( szWidth * nChar / 10.0 + 0.5 ) return ( 10 + szWidth * 1.05 ) , 1.5 * szHeight