This is the sequence:Roberto Lopez wrote: ::qPainter:drawText_6( QRectF , cData , QTextOption )
[/code]
Is possible that the problem be in drawText() call regarding the new code that allows us avoid the 'method_n()' format ?
Code: Select all
CASE 3
DO CASE
CASE hb_isNumeric( hb_pvalue( 1 ) ) .AND. hb_isNumeric( hb_pvalue( 2 ) ) .AND. hb_isChar( hb_pvalue( 3 ) )
RETURN Qt_QPainter_drawText_4( ::pPtr, ... )
CASE hb_isObject( hb_pvalue( 1 ) ) .AND. hb_isChar( hb_pvalue( 2 ) ) .AND. hb_isObject( hb_pvalue( 3 ) )
RETURN Qt_QPainter_drawText_6( ::pPtr, ... ) // above code's call should be reaching here
// I do not know what is happening at your end.
// Check tracing in TQPainter.prg if you reach here.
CASE hb_isObject( hb_pvalue( 1 ) ) .AND. hb_isNumeric( hb_pvalue( 2 ) ) .AND. hb_isChar( hb_pvalue( 3 ) )
SWITCH __objGetClsName( hb_pvalue( 1 ) )
CASE "QRECT"
RETURN Qt_QPainter_drawText_3( ::pPtr, ... )
CASE "QRECTF"
RETURN Qt_QPainter_drawText_2( ::pPtr, ... )
ENDSWITCH
ENDCASE
EXIT
/*
* void drawText ( const QRectF & rectangle, const QString & text, const QTextOption & option = QTextOption() )
*/
HB_FUNC( QT_QPAINTER_DRAWTEXT_6 )
{
QPainter * p = hbqt_par_QPainter( 1 );
if( p )
{
void * pText;
( p )->drawText( *hbqt_par_QRectF( 2 ), hb_parstr_utf8( 3, &pText, NULL ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QTextOption( 4 ) : QTextOption() ) );
hb_strfree( pText );
}
}