mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-11 07:40:21 -04:00
added method to show a given post author into the people tab
This commit is contained in:
parent
64737827a1
commit
3a92124aac
6 changed files with 151 additions and 31 deletions
|
@ -1941,6 +1941,22 @@ void IdDialog::modifyReputation()
|
|||
return;
|
||||
}
|
||||
|
||||
void IdDialog::navigate(const RsGxsId& gxs_id)
|
||||
{
|
||||
std::cerr << "IdDialog::navigate to " << gxs_id.toStdString() << std::endl;
|
||||
|
||||
// in order to do this, we just select the correct ID in the ID list
|
||||
|
||||
QList<QTreeWidgetItem*> select = ui->idTreeWidget->findItems(QString::fromStdString(gxs_id.toStdString()),Qt::MatchExactly | Qt::MatchRecursive | Qt::MatchWrap,RSID_COL_KEYID) ;
|
||||
|
||||
if(select.empty())
|
||||
{
|
||||
std::cerr << "Cannot find item with ID " << gxs_id << " in ID list." << std::endl;
|
||||
return ;
|
||||
}
|
||||
ui->idTreeWidget->setCurrentItem(*select.begin(),true);
|
||||
|
||||
}
|
||||
void IdDialog::updateDisplay(bool complete)
|
||||
{
|
||||
/* Update identity list */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue