Ok, just for trying to understand how it is possible to proceed and to
validate the idea I did some tests... I was able to remove a GPFs
changing some add* functions.
It was a manual work and I strongly believe it can't be done manually !
Just for reference I post here one of this changed functions, for code review:
HB_FUNC( QT_QMAINWINDOW_ADDTOOLBAR )
{
QGC_POINTER_QMainWindow * q;
QGC_POINTER * p;
HB_TRACE( HB_TR_DEBUG, ("QMAINWINDOW_ADDTOOLBAR" ) );
q = ( QGC_POINTER_QMainWindow * ) hb_parptrGC( hbqt_gcFuncs(), 1 );
p = ( QGC_POINTER * ) hb_parptrGC( hbqt_gcFuncs(), 3 );
if ( p && p->ph && q && q->ph )
{
HB_TRACE( HB_TR_DEBUG, ( "QT_QMAINWINDOW_ADDTOOLBAR() Qt oject:
%p is attached to: %p", (void *) p->ph, (void *) q->ph) );
p->bNew = HB_FALSE;
if ( q && q->ph )
( q->ph )->addToolBar( ( Qt::ToolBarArea ) hb_parni( 2 ), ( (
QToolBar *) p->ph ));
else
HB_TRACE( HB_TR_DEBUG, ( "F=QT_QMAINWINDOW_ADDACTION FP=( q->ph
)->addAction( xx ); q->ph is NULL" ));
}
}
Francesco
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour