Added to details to display the Status

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3865 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-11-23 22:06:58 +00:00
parent ebef7e7141
commit 3bad8ad1c9
2 changed files with 25 additions and 5 deletions

View File

@ -158,12 +158,16 @@ void ConfCertDialog::load()
ui.dynDNS->setText(QString::fromStdString(detail.dyndns)); ui.dynDNS->setText(QString::fromStdString(detail.dyndns));
ui.statusline->setText(QString::fromStdString(detail.autoconnect));
ui.ipAddressList->clear(); ui.ipAddressList->clear();
for(std::list<std::string>::const_iterator it(detail.ipAddressList.begin());it!=detail.ipAddressList.end();++it) for(std::list<std::string>::const_iterator it(detail.ipAddressList.begin());it!=detail.ipAddressList.end();++it)
ui.ipAddressList->addItem(QString::fromStdString(*it)); ui.ipAddressList->addItem(QString::fromStdString(*it));
ui.loc->show(); ui.loc->show();
ui.label_loc->show(); ui.label_loc->show();
ui.statusline->show();
ui.label_status->show();
ui.lastcontact->show(); ui.lastcontact->show();
ui.label_last_contact->show(); ui.label_last_contact->show();
ui.version->show(); ui.version->show();
@ -177,6 +181,8 @@ void ConfCertDialog::load()
ui.label_rsid->show(); ui.label_rsid->show();
ui.loc->hide(); ui.loc->hide();
ui.label_loc->hide(); ui.label_loc->hide();
ui.statusline->hide();
ui.label_status->hide();
ui.lastcontact->hide(); ui.lastcontact->hide();
ui.label_last_contact->hide(); ui.label_last_contact->hide();
ui.version->hide(); ui.version->hide();

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>516</width> <width>516</width>
<height>606</height> <height>544</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -66,28 +66,28 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="6" column="0">
<widget class="QLabel" name="label_last_contact"> <widget class="QLabel" name="label_last_contact">
<property name="text"> <property name="text">
<string>Last Contact</string> <string>Last Contact</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="6" column="1">
<widget class="QLineEdit" name="lastcontact"> <widget class="QLineEdit" name="lastcontact">
<property name="readOnly"> <property name="readOnly">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1"> <item row="7" column="1">
<widget class="QLineEdit" name="version"> <widget class="QLineEdit" name="version">
<property name="readOnly"> <property name="readOnly">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0"> <item row="7" column="0">
<widget class="QLabel" name="label_version"> <widget class="QLabel" name="label_version">
<property name="text"> <property name="text">
<string>Version</string> <string>Version</string>
@ -122,6 +122,20 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0">
<widget class="QLabel" name="label_status">
<property name="text">
<string>Status</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLineEdit" name="statusline">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>