2009-08-09 17:35 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)

* contrib/hbqt/hbqt_slots.cpp
  * contrib/hbxbp/xbpbrowse.prg
    ! Improved speed. Reported by Viktor.
This commit is contained in:
Pritpal Bedi
2009-08-10 00:35:55 +00:00
parent f5194be5a0
commit 33fd594348
3 changed files with 14 additions and 11 deletions

View File

@@ -17,6 +17,11 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-08-09 17:35 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_slots.cpp
* contrib/hbxbp/xbpbrowse.prg
! Improved speed. Reported by Viktor.
2009-08-09 17:10 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt.ch
+ Added more constants.

View File

@@ -1881,6 +1881,8 @@ QVariant HbDbfModel::data( const QModelIndex & index, int role ) const
case Qt::DecorationRole:
{
QVariant image = fetchRole( block, HBQT_BRW_CELLDECORATION, index.row()+1, index.column()+1 );
if( image.toString() == ( QString ) "" )
return( QVariant() );
return( QIcon( image.toString() ) );
//return( QPixmap( image.toString() ) );
}

View File

@@ -826,18 +826,14 @@ METHOD XbpBrowse:supplyInfo( nInfo, p2, p3 )
ENDIF
CASE HBQT_BRW_CELLVALUE
IF ::columns[ p3 ]:type == XBPCOL_TYPE_TEXT
IF ::lFirst
::lFirst := .f.
::forceStable()
::setVertScrollBarRange( .t. )
::setHorzScrollBarRange( .f. )
::oWidget:selectRow( ::rowPos - 1 )
ENDIF
RETURN ::cellValue( p2, p3 )
ELSE
RETURN ""
IF ::lFirst
::lFirst := .f.
::forceStable()
::setVertScrollBarRange( .t. )
::setHorzScrollBarRange( .f. )
::oWidget:selectRow( ::rowPos - 1 )
ENDIF
RETURN ::cellValue( p2, p3 )
ENDSWITCH