Changeset 4905
- Timestamp:
- 05/13/07 03:23:46 (19 months ago)
- Location:
- branches/qt-gui_qt4/src
- Files:
-
- 4 added
- 4 modified
-
CMakeLists.txt (modified) (1 diff)
-
contactlist.cpp (added)
-
contactlist.h (added)
-
contactlistdata.cpp (added)
-
contactlistdata.h (added)
-
mainwin.cpp (modified) (13 diffs)
-
mainwin.h (modified) (2 diffs)
-
optionsdlg.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt-gui_qt4/src/CMakeLists.txt
r4820 r4905 7 7 chatdlg.cpp 8 8 chatjoin.cpp 9 contactlist.cpp 10 contactlistdata.cpp 9 11 editfile.cpp 10 12 editfilelistdlg.cpp -
branches/qt-gui_qt4/src/mainwin.cpp
r4894 r4905 97 97 #include "emoticon.h" 98 98 #include "ownermanagerdlg.h" 99 #include "contactlist.h" 99 100 100 101 #ifdef USE_KDE … … 677 678 colInfo.push_back(new CColumnInfo(QString::fromLocal8Bit(colTitle), colFormat, colWidth, colAlign)); 678 679 } 680 contactList = new CContactList(theSigMan, this); 679 681 CreateUserView(); 680 682 … … 1126 1128 CMainWindow::~CMainWindow() 1127 1129 { 1130 delete contactList; 1128 1131 delete licqIcon; 1129 1132 if (skin) delete skin; … … 1863 1866 void CMainWindow::updateUserWin() 1864 1867 { 1868 // Reload contact list from the daemon 1869 contactList->reloadAll(); 1865 1870 // set the pixmap and color for each user and add them to the view 1866 1871 userView->setUpdatesEnabled(false); … … 3470 3475 } 3471 3476 } 3477 3478 // The daemon does not send an update when group membership changes so tell the contactList it needs to update 3479 contactList->updateUser(m_szUserMenuId, m_nUserMenuPPID); 3472 3480 } 3473 3481 … … 3493 3501 gUserManager.RemoveUserFromGroup(szId, nPPID, group); 3494 3502 updateUserWin(); 3503 3504 // The daemon does not send an update when group membership changes so tell the contactList it needs to update 3505 contactList->updateUser(m_szUserMenuId, m_nUserMenuPPID); 3495 3506 return true; 3496 3507 } … … 3505 3516 gUserManager.DropUser(u); 3506 3517 updateUserWin(); 3518 3519 // The daemon does not send an update when group membership changes so tell the contactList it needs to update 3520 contactList->updateUser(m_szUserMenuId, m_nUserMenuPPID); 3507 3521 return true; 3508 3522 } … … 3510 3524 return false; 3511 3525 } 3512 3513 3526 3514 3527 bool CMainWindow::RemoveUserFromGroup(GroupType gtype, unsigned long group, unsigned long nUin, QWidget *p) … … 3533 3546 gUserManager.RemoveUserFromGroup(nUin, group); 3534 3547 updateUserWin(); 3548 3549 // The daemon does not send an update when group membership changes so tell the contactList it needs to update 3550 contactList->updateUser(m_szUserMenuId, m_nUserMenuPPID); 3535 3551 return true; 3536 3552 } … … 3545 3561 gUserManager.DropUser(u); 3546 3562 updateUserWin(); 3563 3564 // The daemon does not send an update when group membership changes so tell the contactList it needs to update 3565 contactList->updateUser(m_szUserMenuId, m_nUserMenuPPID); 3547 3566 return true; 3548 3567 } … … 3592 3611 3593 3612 gUserManager.AddUserToGroup(m_szUserMenuId, m_nUserMenuPPID, a->data().toInt()); 3613 3614 // The daemon does not send an update when group membership changes so tell the contactList it needs to update 3615 contactList->updateUser(m_szUserMenuId, m_nUserMenuPPID); 3594 3616 updateUserWin(); 3595 3617 } … … 4273 4295 // TODO Qt4 mnuUser->changeItem(QIcon(pmCustomAR), tr("Custom Auto Response..."), mnuUserCustomAutoResponse); 4274 4296 updateUserWin(); 4297 contactList->configUpdated(); 4275 4298 } 4276 4299 } … … 4491 4514 CUserView::UpdateFloaties(); 4492 4515 updateUserWin(); 4516 contactList->configUpdated(); 4493 4517 updateEvents(); 4494 4518 updateStatus(0); //This shows ICQ status for the status label and dock icon -
branches/qt-gui_qt4/src/mainwin.h
r4894 r4905 75 75 class UserSendCommon; 76 76 class IconManager; 77 class CContactList; 77 78 class CUserView; 78 79 … … 215 216 FlashType m_nFlash; 216 217 CSkin *skin; 218 CContactList* contactList; 217 219 218 220 unsigned long m_nCurrentGroup, m_nGroupStates; -
branches/qt-gui_qt4/src/optionsdlg.cpp
r4845 r4905 48 48 #endif 49 49 50 #include "contactlist.h" 50 51 #include "ewidgets.h" 51 52 #include "optionsdlg.h" … … 678 679 mainwin->CreateUserView(); 679 680 mainwin->updateUserWin(); 681 mainwin->contactList->configUpdated(); 680 682 mainwin->resizeEvent(NULL); 681 683 mainwin->userView->show();
