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/contactgroup.h

    r6200 r6283  
    2929#include "contactlist.h" 
    3030 
     31class LicqGroup; 
     32 
    3133namespace LicqQtGui 
    3234{ 
     
    5052   * @param name Group name 
    5153   */ 
    52   ContactGroup(unsigned short id, QString name); 
     54  ContactGroup(unsigned short id, QString name = QString()); 
     55 
     56  /** 
     57   * Constructor, creates an empty group 
     58   * 
     59   * @param group Group object from daemon 
     60   */ 
     61  ContactGroup(const LicqGroup* group); 
    5362 
    5463  /** 
     
    157166  virtual bool setData(const QVariant& value, int role = ContactListModel::NameRole); 
    158167 
     168  /** 
     169   * Update sort key for this group from daemon 
     170   */ 
     171  void updateSortKey(); 
     172 
    159173signals: 
    160174  /** 
     
    171185  unsigned short myGroupId; 
    172186  QString myName; 
    173   QString mySortKey; 
     187  unsigned short mySortKey; 
    174188  int myEvents; 
    175189  QList<ContactUser*> myUsers;