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

* contrib/hbqt/qtgui/qth/QTextCursor.qth
    ! Fixed: a nasty overlook.
This commit is contained in:
Pritpal Bedi
2012-08-14 23:46:53 +00:00
parent 3ac75bd18e
commit fabb233269
2 changed files with 7 additions and 3 deletions

View File

@@ -16,6 +16,10 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-08-14 16:45 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/qth/QTextCursor.qth
! Fixed: a nasty overlook.
2012-08-14 12:44 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/src/rtl/valtype.c
* modified HB_ISEVALITEM() to use HB_IS_EVALITEM() macro

View File

@@ -40,11 +40,11 @@ HB_FUNC( QT_QTEXTCURSOR )
if( hbqt_par_isDerivedFrom( 1, "QTEXTCURSOR" ) )
__HB_RETPTRGC__( new QTextCursor( *hbqt_par_QTextCursor( 1 ) ) );
else if( hbqt_par_isDerivedFrom( 1, "QTEXTDOCUMENT" ) )
__HB_RETPTRGC__( new QTextCursor( hbqt_par_QTextDocument( 2 ) ) );
__HB_RETPTRGC__( new QTextCursor( hbqt_par_QTextDocument( 1 ) ) );
else if( hbqt_par_isDerivedFrom( 1, "QTEXTBLOCK" ) )
__HB_RETPTRGC__( new QTextCursor( *hbqt_par_QTextBlock( 2 ) ) );
__HB_RETPTRGC__( new QTextCursor( *hbqt_par_QTextBlock( 1 ) ) );
else if( hbqt_par_isDerivedFrom( 1, "QTEXTFRAME" ) )
__HB_RETPTRGC__( new QTextCursor( hbqt_par_QTextFrame( 2 ) ) );
__HB_RETPTRGC__( new QTextCursor( hbqt_par_QTextFrame( 1 ) ) );
else
__HB_RETPTRGC__( new QTextCursor() );
}