mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 00:25:16 -04:00
support for retroshare links in gxs forums
- only group can link at the moment added more nxs tests and better cleanup - test ability sync with a delayed circle load git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7384 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
838e263ba3
commit
0dabe4b8a1
25 changed files with 343 additions and 126 deletions
|
@ -457,6 +457,21 @@ RSTreeWidget *GroupTreeWidget::treeWidget()
|
|||
return ui->treeWidget;
|
||||
}
|
||||
|
||||
bool GroupTreeWidget::getGroupName(QString id, QTreeWidgetItem* categoryItem, QString& name)
|
||||
{
|
||||
int childCount = categoryItem->childCount();
|
||||
for (int child = 0; child < childCount; child++) {
|
||||
QTreeWidgetItem *childItem = categoryItem->child(child);
|
||||
if (childItem->data(COLUMN_DATA, ROLE_ID).toString() == id) {
|
||||
/* Found child */
|
||||
|
||||
name = childItem->text(COLUMN_NAME);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
int GroupTreeWidget::subscribeFlags(const QString &id)
|
||||
{
|
||||
QTreeWidgetItem *item = getItemFromId(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue