2012-06-02 15:43 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtcore/qth/QChildEvent.qth
* contrib/hbqt/qtcore/qth/QEvent.qth
* contrib/hbqt/qtcore/qth/QLatin1Char.qth
* contrib/hbqt/qtcore/qth/QLatin1String.qth
* contrib/hbqt/qtcore/qth/QMimeData.qth
* contrib/hbqt/qtcore/qth/QObject.qth
* contrib/hbqt/qtcore/qth/QTextDecoder.qth
* contrib/hbqt/qtcore/qth/QTextEncoder.qth
* contrib/hbqt/qtcore/qth/QThread.qth
* contrib/hbqt/qtcore/qth/QTranslator.qth
! Fixed: constructors.
This commit is contained in:
@@ -16,6 +16,19 @@
|
||||
The license applies to all entries newer than 2009-04-28.
|
||||
*/
|
||||
|
||||
2012-06-02 15:43 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
|
||||
* contrib/hbqt/qtcore/qth/QChildEvent.qth
|
||||
* contrib/hbqt/qtcore/qth/QEvent.qth
|
||||
* contrib/hbqt/qtcore/qth/QLatin1Char.qth
|
||||
* contrib/hbqt/qtcore/qth/QLatin1String.qth
|
||||
* contrib/hbqt/qtcore/qth/QMimeData.qth
|
||||
* contrib/hbqt/qtcore/qth/QObject.qth
|
||||
* contrib/hbqt/qtcore/qth/QTextDecoder.qth
|
||||
* contrib/hbqt/qtcore/qth/QTextEncoder.qth
|
||||
* contrib/hbqt/qtcore/qth/QThread.qth
|
||||
* contrib/hbqt/qtcore/qth/QTranslator.qth
|
||||
! Fixed: constructors.
|
||||
|
||||
2012-06-02 14:40 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
|
||||
* contrib/hbqt/qtgui/qth/QCalendarWidget.qth
|
||||
* contrib/hbqt/qtgui/qth/QCheckBox.qth
|
||||
|
||||
@@ -31,6 +31,10 @@ HB_FUNC( QT_QCHILDEVENT )
|
||||
{
|
||||
__HB_RETPTRGC__( new QChildEvent( ( QEvent::Type ) hb_parni( 1 ), hbqt_par_QObject( 2 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_errRT_BASE( EG_ARG, 9999, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -35,6 +35,10 @@ HB_FUNC( QT_QEVENT )
|
||||
{
|
||||
__HB_RETPTRGC__( new QEvent( ( QEvent::Type ) hb_parni( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_errRT_BASE( EG_ARG, 9999, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -39,6 +39,10 @@ HB_FUNC( QT_QLATIN1CHAR )
|
||||
{
|
||||
__HB_RETPTRGC__( new QLatin1Char( ( char ) hb_parni( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_errRT_BASE( EG_ARG, 9999, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -35,6 +35,10 @@ HB_FUNC( QT_QLATIN1STRING )
|
||||
{
|
||||
__HB_RETPTRGC__( new QLatin1String( hb_parcx( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_errRT_BASE( EG_ARG, 9999, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -29,10 +29,7 @@ Destructor =
|
||||
*/
|
||||
HB_FUNC( QT_QMIMEDATA )
|
||||
{
|
||||
if( hb_pcount() == 0 )
|
||||
{
|
||||
__HB_RETPTRGC__( new QMimeData() );
|
||||
}
|
||||
__HB_RETPTRGC__( new QMimeData() );
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ HB_FUNC( QT_QOBJECT )
|
||||
}
|
||||
else
|
||||
{
|
||||
__HB_RETPTRGC__( new QObject( 0 ) );
|
||||
__HB_RETPTRGC__( new QObject() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
@@ -32,6 +32,10 @@ HB_FUNC( QT_QTEXTDECODER )
|
||||
{
|
||||
__HB_RETPTRGC__( new QTextDecoder( hbqt_par_QTextCodec( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_errRT_BASE( EG_ARG, 9999, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -32,6 +32,10 @@ HB_FUNC( QT_QTEXTENCODER )
|
||||
{
|
||||
__HB_RETPTRGC__( new QTextEncoder( hbqt_par_QTextCodec( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
hb_errRT_BASE( EG_ARG, 9999, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -28,7 +28,14 @@ Destructor =
|
||||
*/
|
||||
HB_FUNC( QT_QTHREAD )
|
||||
{
|
||||
__HB_RETPTRGC__( new QThread() );
|
||||
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QOBJECT" ) )
|
||||
{
|
||||
__HB_RETPTRGC__( new QThread( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
__HB_RETPTRGC__( new QThread() );
|
||||
}
|
||||
}
|
||||
</CODE>
|
||||
|
||||
|
||||
@@ -28,9 +28,9 @@ Destructor =
|
||||
*/
|
||||
HB_FUNC( QT_QTRANSLATOR )
|
||||
{
|
||||
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QTRANSLATOR" ) )
|
||||
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QOBJECT" ) )
|
||||
{
|
||||
__HB_RETPTRGC__( new QTranslator( hbqt_par_QTranslator( 1 ) ) );
|
||||
__HB_RETPTRGC__( new QTranslator( hbqt_par_QObject( 1 ) ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user