mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-30 04:16:40 -05:00
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:
parent
dcfdaf44e0
commit
9aae5520e9
2 changed files with 67 additions and 78 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue