* 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:
defnax 2009-01-02 00:55:03 +00:00
parent 60244f6f7f
commit 9947abf33a
2 changed files with 45 additions and 7 deletions

View File

@ -23,6 +23,9 @@
#include "rsiface/rsiface.h" #include "rsiface/rsiface.h"
#include "rsiface/rspeers.h" #include "rsiface/rspeers.h"
#include <QTime>
/* Define the format used for displaying the date and time */ /* Define the format used for displaying the date and time */
#define DATETIME_FMT "MMM dd hh:mm:ss" #define DATETIME_FMT "MMM dd hh:mm:ss"
@ -86,7 +89,11 @@ void ConfCertDialog::loadDialog()
ui.name->setText(QString::fromStdString(detail.name)); ui.name->setText(QString::fromStdString(detail.name));
ui.orgloc->setText(QString::fromStdString(detail.org)); ui.orgloc->setText(QString::fromStdString(detail.org));
ui.country->setText(QString::fromStdString(detail.location)); 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 */ /* set local address */
ui.localAddress->setText(QString::fromStdString(detail.localAddr)); ui.localAddress->setText(QString::fromStdString(detail.localAddr));

View File

@ -5,8 +5,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>516</width> <width>491</width>
<height>472</height> <height>427</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy" >
@ -580,6 +580,20 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0" >
<widget class="QLabel" name="label_7" >
<property name="text" >
<string>Last Contact</string>
</property>
</widget>
</item>
<item row="4" column="1" >
<widget class="QLineEdit" name="lastcontact" >
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -729,7 +743,14 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="2" column="0" > </layout>
</widget>
<widget class="QWidget" name="tab" >
<attribute name="title" >
<string>Trust Settings</string>
</attribute>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QGroupBox" name="groupBox_3" > <widget class="QGroupBox" name="groupBox_3" >
<property name="title" > <property name="title" >
<string>Trust Settings</string> <string>Trust Settings</string>
@ -766,6 +787,19 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>451</width>
<height>131</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</widget> </widget>
</widget> </widget>
@ -818,9 +852,6 @@
<tabstop>extAddress</tabstop> <tabstop>extAddress</tabstop>
<tabstop>extPort</tabstop> <tabstop>extPort</tabstop>
<tabstop>extName</tabstop> <tabstop>extName</tabstop>
<tabstop>trustLvl</tabstop>
<tabstop>signBox</tabstop>
<tabstop>trustBox</tabstop>
<tabstop>cancelButton</tabstop> <tabstop>cancelButton</tabstop>
<tabstop>applyButton</tabstop> <tabstop>applyButton</tabstop>
</tabstops> </tabstops>