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/core
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/core/mainwin.cpp

    r6151 r6152  
    657657      break; 
    658658  } 
    659 } 
    660  
    661 void MainWindow::updateUserWin() 
    662 { 
    663   // Reload contact list from the daemon 
    664   LicqGui::instance()->contactList()->reloadAll(); 
    665   myUserView->updateRootIndex(); 
    666659} 
    667660 
  • trunk/qt4-gui/src/core/mainwin.h

    r6088 r6152  
    101101 
    102102public slots: 
    103   void updateUserWin(); 
    104103  void slot_shutdown(); 
    105104  void slot_updatedList(CICQSignal*); 
  • trunk/qt4-gui/src/core/systemmenu.cpp

    r6144 r6152  
    111111  myUserAdmMenu->addAction(tr("Update All Users"), this, SLOT(updateAllUsers())); 
    112112  myUserAdmMenu->addAction(tr("Update Current Group"), this, SLOT(updateAllUsersInGroup())); 
    113   a = myUserAdmMenu->addAction(tr("&Redraw User Window"), gMainWindow, SLOT(updateUserWin())); 
     113  a = myUserAdmMenu->addAction(tr("&Redraw User Window"), LicqGui::instance()->contactList(), SLOT(reloadAll())); 
    114114  a->setShortcut(Qt::CTRL + Qt::Key_L); 
    115115  myUserAdmMenu->addAction(tr("&Save All Users"), this, SLOT(saveAllUsers()));