2011-08-29 13:40 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/qtgui/qth/QPrintDialog.qth
    ! Fixed: constructor. It was very limiting before.
      TODO: need to review constructors on all the .qth's.
This commit is contained in:
Pritpal Bedi
2011-08-29 20:42:47 +00:00
parent 85e1b536b9
commit bbd8a26d9f
2 changed files with 21 additions and 1 deletions

View File

@@ -16,6 +16,11 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-08-29 13:40 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/qth/QPrintDialog.qth
! Fixed: constructor. It was very limiting before.
TODO: need to review constructors on all the .qth's.
2011-08-29 17:00 UTC+0100 Jean Lefebvre mafact (jfl@mafact.com)
* contrib/rddads/ads1.c
+ Enhanced: growning ahIndex from 50 to 512 to allows virtually unlimited TAG

View File

@@ -27,7 +27,22 @@ New = pParent
*/
HB_FUNC( QT_QPRINTDIALOG )
{
__HB_RETPTRGC__( new QPrintDialog ( hbqt_par_QWidget( 1 ) ) );
if( hb_pcount() == 2 && HB_ISOBJECT( 1 ) && HB_ISOBJECT( 2 ) && hbqt_isObjectType( 1, HBQT_TYPE_QPrinter ) )
{
__HB_RETPTRGC__( new QPrintDialog( hbqt_par_QPrinter( 1 ), hbqt_par_QWidget( 2 ) ) );
}
else if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) && hbqt_isObjectType( 1, HBQT_TYPE_QPrinter ) )
{
__HB_RETPTRGC__( new QPrintDialog( hbqt_par_QPrinter( 1 ), 0 ) );
}
else if( hb_pcount() == 1 && HB_ISOBJECT( 1 ) )
{
__HB_RETPTRGC__( new QPrintDialog( hbqt_par_QWidget( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QPrintDialog() );
}
}
</CODE>