Friends Storm:

- Don't update the connection time of the PeerItem. Only show the real connection time.
- Removed memory leak. All PeerItems are only set to invisible and wasn't deleted.
- Added button to remove all items.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3754 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-11-06 19:13:33 +00:00
parent c19c8b5532
commit 2122dd8351
4 changed files with 58 additions and 19 deletions

View file

@ -122,6 +122,10 @@ void PeerItem::updateItemStatic()
QString peername = QString::fromStdString(details.name);
peernameLabel->setText(nameStr.arg(peername));
QDateTime date = QDateTime::fromTime_t(details.lastConnect);
QString stime = date.toString(Qt::LocalDate);
lastLabel-> setText(stime);
/* expanded Info */
nameLabel->setText(QString::fromStdString(details.name));
idLabel->setText(QString::fromStdString(details.id));
@ -198,9 +202,6 @@ void PeerItem::updateItem()
}
connLabel->setText(QString::fromStdString(details.autoconnect));
QDateTime date = QDateTime::fromTime_t(details.lastConnect);
QString stime = date.toString(Qt::LocalDate);
lastLabel-> setText(stime);
/* do buttons */
chatButton->setEnabled(details.state & RS_PEER_STATE_CONNECTED);