From 49f53c01bcd2c6769e25cde4e2af38ec9f5ff08b Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Wed, 20 Jun 2012 14:57:27 +0000 Subject: [PATCH] 2012-06-20 07:55 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/qtgui/qth/QDateEdit.qth * contrib/hbqt/qtgui/qth/QDateTimeEdit.qth * contrib/hbqt/qtgui/qth/QTimeEdit.qth ! Fixed: wrong "else if" in constructors. --- harbour/contrib/hbqt/qtgui/qth/QDateEdit.qth | 4 ++-- harbour/contrib/hbqt/qtgui/qth/QDateTimeEdit.qth | 12 ++++++------ harbour/contrib/hbqt/qtgui/qth/QTimeEdit.qth | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/harbour/contrib/hbqt/qtgui/qth/QDateEdit.qth b/harbour/contrib/hbqt/qtgui/qth/QDateEdit.qth index c802a84c80..c5dd3e15c9 100644 --- a/harbour/contrib/hbqt/qtgui/qth/QDateEdit.qth +++ b/harbour/contrib/hbqt/qtgui/qth/QDateEdit.qth @@ -30,11 +30,11 @@ HB_FUNC( QT_QDATEEDIT ) { __HB_RETPTRGC__( new QDateEdit( hbqt_par_QWidget( 1 ) ) ); } - if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QDATE" ) ) + else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QDATE" ) ) { __HB_RETPTRGC__( new QDateEdit( *hbqt_par_QDate( 1 ) ) ); } - if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QDATE" ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) ) + else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QDATE" ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) ) { __HB_RETPTRGC__( new QDateEdit( *hbqt_par_QDate( 1 ), hbqt_par_QWidget( 2 ) ) ); } diff --git a/harbour/contrib/hbqt/qtgui/qth/QDateTimeEdit.qth b/harbour/contrib/hbqt/qtgui/qth/QDateTimeEdit.qth index e6897f055f..8f74a20f22 100644 --- a/harbour/contrib/hbqt/qtgui/qth/QDateTimeEdit.qth +++ b/harbour/contrib/hbqt/qtgui/qth/QDateTimeEdit.qth @@ -32,27 +32,27 @@ HB_FUNC( QT_QDATETIMEEDIT ) { __HB_RETPTRGC__( new QDateTimeEdit( hbqt_par_QWidget( 1 ) ) ); } - if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QDATE" ) ) + else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QDATE" ) ) { __HB_RETPTRGC__( new QDateTimeEdit( *hbqt_par_QDate( 1 ) ) ); } - if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QDATE" ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) ) + else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QDATE" ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) ) { __HB_RETPTRGC__( new QDateTimeEdit( *hbqt_par_QDate( 1 ), hbqt_par_QWidget( 2 ) ) ); } - if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QTIME" ) ) + else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QTIME" ) ) { __HB_RETPTRGC__( new QDateTimeEdit( *hbqt_par_QTime( 1 ) ) ); } - if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QTIME" ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) ) + else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QTIME" ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) ) { __HB_RETPTRGC__( new QDateTimeEdit( *hbqt_par_QTime( 1 ), hbqt_par_QWidget( 2 ) ) ); } - if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QDATETIME" ) ) + else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QDATETIME" ) ) { __HB_RETPTRGC__( new QDateTimeEdit( *hbqt_par_QDateTime( 1 ) ) ); } - if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QDATETIME" ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) ) + else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QDATETIME" ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) ) { __HB_RETPTRGC__( new QDateTimeEdit( *hbqt_par_QDateTime( 1 ), hbqt_par_QWidget( 2 ) ) ); } diff --git a/harbour/contrib/hbqt/qtgui/qth/QTimeEdit.qth b/harbour/contrib/hbqt/qtgui/qth/QTimeEdit.qth index 48ce10404b..19d4b053d3 100644 --- a/harbour/contrib/hbqt/qtgui/qth/QTimeEdit.qth +++ b/harbour/contrib/hbqt/qtgui/qth/QTimeEdit.qth @@ -30,11 +30,11 @@ HB_FUNC( QT_QTIMEEDIT ) { __HB_RETPTRGC__( new QTimeEdit( hbqt_par_QWidget( 1 ) ) ); } - if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QTIME" ) ) + else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QTIME" ) ) { __HB_RETPTRGC__( new QTimeEdit( *hbqt_par_QTime( 1 ) ) ); } - if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QTIME" ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) ) + else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QTIME" ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) ) { __HB_RETPTRGC__( new QTimeEdit( *hbqt_par_QTime( 1 ), hbqt_par_QWidget( 2 ) ) ); }