few design improvements for Feeds Peer Item

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2228 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-02-07 17:40:22 +00:00
parent dcfdaf44e0
commit 9aae5520e9
2 changed files with 67 additions and 78 deletions

View file

@ -176,10 +176,10 @@ void PeerItem::updateItem()
ipLabel->setText(QString::fromStdString(out.str()));
}
time_t now = time(NULL);
connLabel->setText(QString::fromStdString(details.autoconnect));
lastLabel->setText(QString::fromStdString(
RsPeerLastConnectString(now - details.lastConnect)));
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);