diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 00836d902f..2ae12b22e0 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -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 diff --git a/harbour/contrib/hbqt/hbqt_hbqabstractitemmodel.cpp b/harbour/contrib/hbqt/hbqt_hbqabstractitemmodel.cpp index 94c263d965..e5eea79a51 100644 --- a/harbour/contrib/hbqt/hbqt_hbqabstractitemmodel.cpp +++ b/harbour/contrib/hbqt/hbqt_hbqabstractitemmodel.cpp @@ -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 ) ret.toInt(); } diff --git a/harbour/contrib/hbxbp/xbpbrowse.prg b/harbour/contrib/hbxbp/xbpbrowse.prg index a729f11f07..a453c152e4 100644 --- a/harbour/contrib/hbxbp/xbpbrowse.prg +++ b/harbour/contrib/hbxbp/xbpbrowse.prg @@ -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 */