Changeset 4843 for trunk/qt-gui/src/userbox.cpp
- Timestamp:
- 01/28/07 01:30:18 (23 months ago)
- Files:
-
- 1 modified
-
trunk/qt-gui/src/userbox.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/userbox.cpp
r4734 r4843 36 36 #include <qimage.h> 37 37 #include <qmime.h> 38 #include <qtimer.h> 38 39 39 40 #include "userbox.moc" … … 1029 1030 1030 1031 carId = onlId = 0; 1032 1033 // Redraw once a minute in case there are cells showing timestamps 1034 tmrRefresh = new QTimer(this); 1035 connect(tmrRefresh, SIGNAL(timeout()), this, SLOT(updateItems())); 1036 tmrRefresh->start(60000); 1031 1037 } 1032 1038 … … 1036 1042 CUserView::~CUserView() 1037 1043 { 1044 tmrRefresh->stop(); 1038 1045 barOnline = barOffline = barNotInList = NULL; 1039 1046 if (parent() == NULL) … … 1625 1632 } 1626 1633 1634 // ----------------------------------------------------------------------------- 1635 1636 void CUserView::updateItems() 1637 { 1638 for (QListViewItemIterator it(firstChild()); it.current() != 0; ++it) 1639 { 1640 CUserViewItem* item = static_cast<CUserViewItem*>(it.current()); 1641 1642 ICQUser *u = gUserManager.FetchUser(item->ItemId(), item->ItemPPID(), LOCK_R); 1643 if (u == 0) 1644 continue; 1645 item->setGraphics(u); 1646 gUserManager.DropUser(u); 1647 } 1648 triggerUpdate(); 1649 } 1627 1650 1628 1651 // -----------------------------------------------------------------------------
