mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 23:45:49 -04:00
Added tooltip on key id column.
Hide Id Type column by default. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7953 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
aaea74becf
commit
110df28979
1 changed files with 13 additions and 2 deletions
|
@ -196,6 +196,8 @@ IdDialog::IdDialog(QWidget *parent) :
|
||||||
mStateHelper->setActive(IDDIALOG_IDDETAILS, false);
|
mStateHelper->setActive(IDDIALOG_IDDETAILS, false);
|
||||||
mStateHelper->setActive(IDDIALOG_REPLIST, false);
|
mStateHelper->setActive(IDDIALOG_REPLIST, false);
|
||||||
|
|
||||||
|
ui->treeWidget_IdList->setColumnHidden(RSID_COL_IDTYPE, true);
|
||||||
|
|
||||||
// Hiding RepList until that part is finished.
|
// Hiding RepList until that part is finished.
|
||||||
//ui->treeWidget_RepList->setVisible(false);
|
//ui->treeWidget_RepList->setVisible(false);
|
||||||
ui->toolButton_Reputation->setVisible(false);
|
ui->toolButton_Reputation->setVisible(false);
|
||||||
|
@ -410,6 +412,8 @@ bool IdDialog::fillIdListItem(const RsGxsIdGroup& data, QTreeWidgetItem *&item,
|
||||||
|
|
||||||
item->setIcon(RSID_COL_NICKNAME, QIcon(pixmap));
|
item->setIcon(RSID_COL_NICKNAME, QIcon(pixmap));
|
||||||
|
|
||||||
|
QString tooltip;
|
||||||
|
|
||||||
if (data.mMeta.mGroupFlags & RSGXSID_GROUPFLAG_REALID)
|
if (data.mMeta.mGroupFlags & RSGXSID_GROUPFLAG_REALID)
|
||||||
{
|
{
|
||||||
if (data.mPgpKnown)
|
if (data.mPgpKnown)
|
||||||
|
@ -418,11 +422,18 @@ bool IdDialog::fillIdListItem(const RsGxsIdGroup& data, QTreeWidgetItem *&item,
|
||||||
rsPeers->getGPGDetails(data.mPgpId, details);
|
rsPeers->getGPGDetails(data.mPgpId, details);
|
||||||
item->setText(RSID_COL_IDTYPE, QString::fromUtf8(details.name.c_str()));
|
item->setText(RSID_COL_IDTYPE, QString::fromUtf8(details.name.c_str()));
|
||||||
item->setToolTip(RSID_COL_IDTYPE,QString::fromStdString(data.mPgpId.toStdString())) ;
|
item->setToolTip(RSID_COL_IDTYPE,QString::fromStdString(data.mPgpId.toStdString())) ;
|
||||||
|
|
||||||
|
|
||||||
|
tooltip += tr("Node name: ") + QString::fromUtf8(details.name.c_str()) + "\n";
|
||||||
|
tooltip += tr("Node Id : ") + QString::fromStdString(data.mPgpId.toStdString()) ;
|
||||||
|
item->setToolTip(RSID_COL_KEYID,tooltip) ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
item->setText(RSID_COL_IDTYPE, tr("Unknown PGP key"));
|
item->setText(RSID_COL_IDTYPE, tr("Unknown PGP key"));
|
||||||
item->setToolTip(RSID_COL_IDTYPE,tr("Unknown key ID")) ;
|
item->setToolTip(RSID_COL_IDTYPE,tr("Unknown key ID")) ;
|
||||||
|
item->setToolTip(RSID_COL_KEYID,tr("Unknown key ID")) ;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue