mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 21:40:36 -04:00
Added to display RetroShare ID on Peer Details
Added to display for each Signers Peer Name + (PeerId) Added first basic add a Friend with RetroShare ID, not yet finished git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3239 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
17723df2c8
commit
6008ef5e22
4 changed files with 138 additions and 5 deletions
|
@ -127,8 +127,11 @@ void ConfCertDialog::loadDialog()
|
|||
}
|
||||
|
||||
ui.name->setText(QString::fromStdString(detail.name));
|
||||
ui.peerid->setText(QString::fromStdString(detail.id));
|
||||
ui.peerid->setText(QString::fromStdString(detail.id));
|
||||
ui.rsid->setText(QString::fromStdString(detail.name) + "@" + QString::fromStdString(detail.id));
|
||||
|
||||
if (!detail.isOnlyGPGdetail) {
|
||||
|
||||
ui.loc->setText(QString::fromStdString(detail.location));
|
||||
// Dont Show a timestamp in RS calculate the day
|
||||
QDateTime date = QDateTime::fromTime_t(detail.lastConnect);
|
||||
|
@ -165,7 +168,11 @@ void ConfCertDialog::loadDialog()
|
|||
ui.label_version->show();
|
||||
|
||||
ui.groupBox->show();
|
||||
ui.rsid->hide();
|
||||
ui.label_rsid->hide();
|
||||
} else {
|
||||
ui.rsid->show();
|
||||
ui.label_rsid->show();
|
||||
ui.loc->hide();
|
||||
ui.label_loc->hide();
|
||||
ui.lastcontact->hide();
|
||||
|
@ -290,7 +297,7 @@ void ConfCertDialog::loadDialog()
|
|||
for(std::list<std::string>::const_iterator it(detail.gpgSigners.begin());it!=detail.gpgSigners.end();++it) {
|
||||
RsPeerDetails signerDetail;
|
||||
if (rsPeers->getGPGDetails(*it, signerDetail)) {
|
||||
ui.signers_listWidget->addItem(QString::fromStdString(signerDetail.name));
|
||||
ui.signers_listWidget->addItem(QString::fromStdString(signerDetail.name) + " (" + QString::fromStdString(signerDetail.id) +")");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -404,7 +411,7 @@ void ConfCertDialog::listWidgetContextMenuPopup( const QPoint &pos)
|
|||
return;
|
||||
|
||||
QMenu menu( this );
|
||||
QAction *copyPeer = new QAction(tr("Copy Peer Name"), this );
|
||||
QAction *copyPeer = new QAction(tr("Copy Peer"), this );
|
||||
connect( copyPeer , SIGNAL( triggered() ), this, SLOT( copyToClipboard() ) );
|
||||
menu.addAction(copyPeer );
|
||||
menu.exec(QCursor::pos());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue