Hi Istvan,
in your sample code there is:
HB_FUNC( QT_QLAYOUT_ADDITEM )
{
QGC_POINTER * p;
QGC_POINTER * q;
HB_TRACE( HB_TR_DEBUG, ( "Entering function QT_QLAYOUT_ADDITEM()" ) );
q = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 1 );
p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 2 );
...
hbqt_par_QLayout( 1 )->addItem( hbqt_par_QLayoutItem( 2 ) )
My proposal is to change hb_parptrGC with the proper function call
hbqt_par_QLayout/hbqt_par_QLayoutItem so to apply, in the future,
hierarchy checks...
and
hbqt_par_QLayout( 1 )->addItem( hbqt_par_QLayoutItem( 2 ) )
to
(q)->addItem( p )
Francesco
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour