Show
Ignore:
Timestamp:
04/17/08 02:19:44 (8 months ago)
Author:
flynd
Message:

Changed ContactListModel::reloadAll to be a slot and use it directly instead of wrapper in main window.

Location:
trunk/qt4-gui/src/views
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/views/userview.cpp

    r6151 r6152  
    6161  connect(Config::ContactList::instance(), SIGNAL(currentListChanged()), SLOT(updateRootIndex())); 
    6262  connect(Config::ContactList::instance(), SIGNAL(listSortingChanged()), SLOT(resort())); 
     63  connect(myContactList, SIGNAL(modelReset()), SLOT(expandGroups())); 
    6364} 
    6465 
  • trunk/qt4-gui/src/views/userview.h

    r6151 r6152  
    6060 
    6161  /** 
    62    * Update expanded status of all groups (only relevant for threaded view mode) 
    63    */ 
    64   void expandGroups(); 
    65  
    66   /** 
    6762   * Set skin colors 
    6863   * 
     
    7671   */ 
    7772  void updateRootIndex(); 
     73 
     74  /** 
     75   * Update expanded status of all groups (only relevant for threaded view mode) 
     76   */ 
     77  void expandGroups(); 
    7878 
    7979protected slots: 
  • trunk/qt4-gui/src/views/userviewbase.cpp

    r6151 r6152  
    278278        { 
    279279          gUserManager.AddUserToGroup(dropId.toLatin1(), dropPpid, gid); 
    280           gMainWindow->updateUserWin(); 
     280          myContactList->updateUser(dropId.toLatin1(), dropPpid); 
    281281        } 
    282282      }