Changeset 6153 for trunk/qt4-gui/src/contactlist
- Timestamp:
- 04/17/08 02:25:30 (8 months ago)
- Location:
- trunk/qt4-gui/src/contactlist
- Files:
-
- 2 modified
-
contactlist.cpp (modified) (1 diff)
-
contactlist.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/contactlist/contactlist.cpp
r6148 r6153 462 462 } 463 463 464 QModelIndex ContactListModel::groupIndex(unsigned long id) const 465 { 466 if (id >= SystemGroupOffset) 467 return groupIndex(GROUPS_SYSTEM, id - SystemGroupOffset); 468 else 469 return groupIndex(GROUPS_USER, id); 470 } 471 464 472 bool ContactListModel::setData(const QModelIndex& index, const QVariant& value, int role) 465 473 { -
trunk/qt4-gui/src/contactlist/contactlist.h
r6152 r6153 315 315 QModelIndex groupIndex(GroupType type, unsigned long id) const; 316 316 317 /** 318 * Get index for a group. This function uses model id for groups 319 * Requesting group id 0 will return other users group. 320 * 321 * @param id Id of the group or 0 to get other users group 322 * @return An index for the group or an invalid index if the group does not exist 323 */ 324 QModelIndex groupIndex(unsigned long id) const; 325 317 326 public slots: 318 327 /**
