Yes, we can put it into contrib. But do we have anything to put there already?
I'd suggest a few minor cleanups: --- #include <QtGui\QDialog> #include "hbapi.h" HB_FUNC( QT_QDIALOG ) { QWidget * parent = ( QWidget * ) hb_parptr( 1 ); hb_retptr( new QDialog( parent, ( Qt::WindowFlags ) hb_parni( 2 ) ) ); } --- Plus I'd strongly suggest considering GC collected pointers. Brgds, Viktor On Tue, Mar 17, 2009 at 11:08 PM, Pritpal Bedi <bediprit...@hotmail.com>wrote: > > Hi Marcos > > > > #include <QDialog> > > #include "hbapi.h" > > > > /* > > QDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 ) > > */ > > HB_FUNC( QT_QDIALOG ) > > { > > QDialog* dialog = NULL; > > QWidget* parent = ISNIL(1)? 0 : (QWidget*) hb_parptr(1); > > int f = ISNIL(2)? 0 : hb_parni(2); > > dialog = new QDialog( parent, (Qt::WindowFlags) f ); > > hb_retptr( (QDialog*) dialog ); > > } > > > > ... > > > > Sounds very much portable. > If group agrees, post it in contrib. Przemek, Viktor ? > > Regards > Pritpal Bedi > > -- > View this message in context: > http://www.nabble.com/Build-xhgtk-inside-harbour-tp20867759p22568921.html > Sent from the Harbour - Dev mailing list archive at Nabble.com. > > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour >
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour