2010-07-24 13:23 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/hbqt_hbqabstractitemmodel.cpp
  * contrib/hbxbp/xbpbrowse.prg
    + Applied: patch forwarded by Bacco.
This commit is contained in:
Pritpal Bedi
2010-07-24 20:24:58 +00:00
parent 4974542ee9
commit 60adbd070f
3 changed files with 12 additions and 3 deletions

View File

@@ -16,6 +16,11 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-07-24 13:23 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/hbqt_hbqabstractitemmodel.cpp
* contrib/hbxbp/xbpbrowse.prg
+ Applied: patch forwarded by Bacco.
2010-07-23 09:23 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/doc/en/class_hbqplaintextedit.txt
* contrib/hbqt/hbqt_hbqplaintextedit.cpp

View File

@@ -154,7 +154,7 @@ Qt::ItemFlags HBQAbstractItemModel::flags( const QModelIndex & index ) const
QVariant ret = hbqt_fetchData( block, HBQT_QAIM_flags, 0, index.column(), index.row() );
if( ! ret.isValid() )
return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable;
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
return ( QFlags<Qt::ItemFlag> ) ret.toInt();
}

View File

@@ -1140,8 +1140,12 @@ METHOD navigate( p1, p2 ) CLASS XbpBrowse
METHOD XbpBrowse:supplyInfo( nMode, nCall, nRole, nX, nY )
IF nCall == HBQT_QAIM_headerData .and. nX == Qt_Vertical
RETURN Nil
End
RETURN NIL
ENDIF
IF nCall == HBQT_QAIM_flags
RETURN Qt_ItemIsEnabled + Qt_ItemIsSelectable + Qt_ItemIsEditable
ENDIF
DO CASE
CASE nMode == 141 /* Main View Header|Data */