2012-05-08 16:04 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/qtwebkit/qth/QWebFrame.qth
  * contrib/hbqt/qtwebkit/qth/QWebHistoryItem.qth
  * contrib/hbqt/qtwebkit/qth/QWebHitTestResult.qth
  * contrib/hbqt/qtwebkit/qth/QWebPage.qth
  * contrib/hbqt/qtwebkit/qth/QWebPluginFactory.qth
  * contrib/hbqt/qtwebkit/qth/QWebSecurityOrigin.qth
  * contrib/hbqt/qtwebkit/qth/QWebView.qth
    - Replaced: HB_ISOBJECT() => hbqt_par_isDerivedFrom()
    * Rationalized: constructors.
This commit is contained in:
Pritpal Bedi
2012-05-08 23:06:39 +00:00
parent f764b317a6
commit 846f136647
8 changed files with 49 additions and 7 deletions

View File

@@ -16,6 +16,17 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-05-08 16:04 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtwebkit/qth/QWebFrame.qth
* contrib/hbqt/qtwebkit/qth/QWebHistoryItem.qth
* contrib/hbqt/qtwebkit/qth/QWebHitTestResult.qth
* contrib/hbqt/qtwebkit/qth/QWebPage.qth
* contrib/hbqt/qtwebkit/qth/QWebPluginFactory.qth
* contrib/hbqt/qtwebkit/qth/QWebSecurityOrigin.qth
* contrib/hbqt/qtwebkit/qth/QWebView.qth
- Replaced: HB_ISOBJECT() => hbqt_par_isDerivedFrom()
* Rationalized: constructors.
2012-05-08 15:14 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtnetwork/qth/QFtp.qth
* contrib/hbqt/qtnetwork/qth/QHttp.qth

View File

@@ -31,7 +31,7 @@ folder = qtwebkit
*/
HB_FUNC( QT_QWEBFRAME )
{
// __HB_RETPTRGC__( new QWebFrame() );
//__HB_RETPTRGC__( new QWebFrame() );
}
</CODE>

View File

@@ -32,10 +32,14 @@ folder = qtwebkit
*/
HB_FUNC( QT_QWEBHISTORYITEM )
{
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QWEBHISTORYITEM" ) )
{
__HB_RETPTRGC__( new QWebHistoryItem( *hbqt_par_QWebHistoryItem( 1 ) ) );
}
else
{
hb_errRT_BASE( EG_ARG, 9999, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
}
}
</CODE>

View File

@@ -32,7 +32,14 @@ folder = qtwebkit
*/
HB_FUNC( QT_QWEBHITTESTRESULT )
{
__HB_RETPTRGC__( new QWebHitTestResult() );
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QWEBHITTESTRESULT" ) )
{
__HB_RETPTRGC__( new QWebHitTestResult( *hbqt_par_QWebHitTestResult( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QWebHitTestResult() );
}
}
</CODE>

View File

@@ -30,7 +30,14 @@ folder = qtwebkit
*/
HB_FUNC( QT_QWEBPAGE )
{
__HB_RETPTRGC__( new QWebPage( hbqt_par_QWidget( 2 ) ) );
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QOBJECT" ) )
{
__HB_RETPTRGC__( new QWebPage( hbqt_par_QObject( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QWebPage() );
}
}
</CODE>

View File

@@ -15,8 +15,9 @@
Inherits = QObject
Type = Core
New =
folder = qtwebkit
Destructor = no
Constructor = no
folder = qtwebkit
</CLASS>
<CODE>

View File

@@ -29,10 +29,14 @@ folder = qtwebkit
*/
HB_FUNC( QT_QWEBSECURITYORIGIN )
{
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QWEBSECURITYORIGIN" ) )
{
__HB_RETPTRGC__( new QWebSecurityOrigin( *hbqt_par_QWebSecurityOrigin( 1 ) ) );
}
else
{
hb_errRT_BASE( EG_ARG, 9999, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
}
}
</CODE>

View File

@@ -12,6 +12,7 @@
*/
<CLASS>
QObject = Yes
Inherit = QWidget
New = pParent
folder = qtwebkit
@@ -29,7 +30,14 @@ folder = qtwebkit
*/
HB_FUNC( QT_QWEBVIEW )
{
__HB_RETPTRGC__( new QWebView( hbqt_par_QWidget( 1 ) ) );
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QWIDGET" ) )
{
__HB_RETPTRGC__( new QWebView( hbqt_par_QWidget( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QWebView() );
}
}
</CODE>