Show
Ignore:
Timestamp:
06/14/08 03:47:03 (6 months ago)
Author:
flynd
Message:

Updated to work with and take advantage of new group handling. Contact list model is now properly updated from signals when groups change.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/contactlist/contactlist.h

    r6197 r6283  
    7474    ItemTypeRole = Qt::UserRole,        // Type of item (one of enum ItemType) 
    7575    NameRole,                           // Item name (alias for UserItems) 
    76     SortPrefixRole,                     // Primary sort index 
    77     SortRole,                           // Secondary sort index 
     76    SortPrefixRole,                     // Primary sort index (UserItems only) 
     77    SortRole,                           // Sort index (secondary index for UserItems, only index for GroupItems) 
    7878    UnreadEventsRole,                   // Number of unread events 
    7979    EventSubCommandRole,                // Type of event (UserItems only) 
     
    389389   * 
    390390   * @param id Id for the new group 
    391    * @param name Name for the new group 
     391   * @param name Name for the new group (only for non standard groups) 
    392392   * @return The created group 
    393393   */ 
    394   ContactGroup* createGroup(unsigned short id, QString name); 
     394  ContactGroup* createGroup(unsigned short id, QString name = QString()); 
    395395 
    396396  /**