mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
Updated interface files.
Added SrcIds to FileRequests(). git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@699 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
eb8dacc798
commit
f9b22cc5d2
6 changed files with 31 additions and 16 deletions
|
@ -152,11 +152,12 @@ RemoteDirModel::RemoteDirModel(bool mode, QObject *parent)
|
|||
return QVariant();
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*if (role == Qt::BackgroundRole)
|
||||
{*/
|
||||
/*** colour entries based on rank/age/count **/
|
||||
/*** rank (0-10) ***/
|
||||
/*uint32_t r = details.rank;
|
||||
/ *uint32_t r = details.rank;
|
||||
if (r > 10) r = 10;
|
||||
r = 200 + r * 5; /* 0->250 */
|
||||
|
||||
|
@ -225,6 +226,7 @@ RemoteDirModel::RemoteDirModel(bool mode, QObject *parent)
|
|||
return QVariant();
|
||||
}
|
||||
}*/
|
||||
#endif
|
||||
|
||||
if (role == Qt::DecorationRole)
|
||||
{
|
||||
|
@ -694,8 +696,10 @@ void RemoteDirModel::downloadSelected(QModelIndexList list)
|
|||
{
|
||||
std::cerr << "RemoteDirModel::downloadSelected() Calling File Request";
|
||||
std::cerr << std::endl;
|
||||
std::list<std::string> srcIds;
|
||||
srcIds.push_back(details.id);
|
||||
rsFiles -> FileRequest(details.name, details.hash,
|
||||
details.count, "", 0);
|
||||
details.count, "", 0, srcIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue