Changeset 6194 for trunk/qt4-gui
- Timestamp:
- 05/15/08 02:13:23 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/contactlist/singlecontactproxy.cpp
r5837 r6194 83 83 } 84 84 85 int SingleContactProxy::columnCount(const QModelIndex& parent) const85 int SingleContactProxy::columnCount(const QModelIndex& /* parent */) const 86 86 { 87 return myContactList->columnCount( parent);87 return myContactList->columnCount(QModelIndex()); 88 88 } 89 89 … … 98 98 Qt::ItemFlags SingleContactProxy::flags(const QModelIndex& index) const 99 99 { 100 return myContactList->flags(index); 100 if (!index.isValid() || index.row() != 0) 101 return Qt::ItemIsEnabled; 102 103 int column = index.column(); 104 if (column < 0 || column >= MAX_COLUMNCOUNT) 105 return Qt::ItemIsEnabled; 106 107 return myContactList->flags(mySourceIndex[column]); 101 108 } 102 109
