mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 22:40:36 -04:00
* added second tab in Peer Details for Trust Settings
* added Last Contact info to Peer Details git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@904 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
60244f6f7f
commit
9947abf33a
2 changed files with 45 additions and 7 deletions
|
@ -23,6 +23,9 @@
|
|||
#include "rsiface/rsiface.h"
|
||||
#include "rsiface/rspeers.h"
|
||||
|
||||
#include <QTime>
|
||||
|
||||
|
||||
/* Define the format used for displaying the date and time */
|
||||
#define DATETIME_FMT "MMM dd hh:mm:ss"
|
||||
|
||||
|
@ -86,7 +89,11 @@ void ConfCertDialog::loadDialog()
|
|||
ui.name->setText(QString::fromStdString(detail.name));
|
||||
ui.orgloc->setText(QString::fromStdString(detail.org));
|
||||
ui.country->setText(QString::fromStdString(detail.location));
|
||||
ui.peerid->setText(QString::fromStdString(detail.id));
|
||||
ui.peerid->setText(QString::fromStdString(detail.id));
|
||||
// Dont Show a timestamp in RS calculate the day
|
||||
QDateTime date = QDateTime::fromTime_t(detail.lastConnect);
|
||||
QString stime = date.toString(Qt::LocalDate);
|
||||
ui.lastcontact-> setText(stime);
|
||||
|
||||
/* set local address */
|
||||
ui.localAddress->setText(QString::fromStdString(detail.localAddr));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue