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:
@@ -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.
|
||||
|
||||
@@ -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() ) );
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user