mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 17:15:16 -04:00
add location to account detail at startup, and improve the peersdialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2075 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5f27d75dc4
commit
ac580a6c07
10 changed files with 548 additions and 808 deletions
|
@ -65,8 +65,7 @@ void ProfileWidget::loadDialog()
|
|||
if (rsPeers->getPeerDetails(rsPeers->getOwnId(),detail))
|
||||
{
|
||||
|
||||
ui.name->setText(QString::fromStdString(detail.name));
|
||||
ui.orgloc->setText(QString::fromStdString(detail.org));
|
||||
ui.name->setText(QString::fromStdString(detail.name));
|
||||
ui.country->setText(QString::fromStdString(detail.location));
|
||||
|
||||
ui.peerid->setText(QString::fromStdString(detail.id));
|
||||
|
@ -74,7 +73,6 @@ void ProfileWidget::loadDialog()
|
|||
// 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 retroshare version */
|
||||
std::map<std::string, std::string>::iterator vit;
|
||||
|
@ -94,7 +92,7 @@ void ProfileWidget::loadDialog()
|
|||
|
||||
std::list<std::string> ids;
|
||||
ids.clear();
|
||||
rsPeers->getFriendList(ids);
|
||||
rsPeers->getGPGAcceptedList(ids);
|
||||
int friends = ids.size();
|
||||
|
||||
std::ostringstream out;
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue