mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 10:05:19 -04:00
added chunk request info, and chunk download info. Corrected bug displaying speed for stalled transfers. Warning: needs full recompilation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3935 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
304bbf55cf
commit
40efe19efa
7 changed files with 69 additions and 29 deletions
|
@ -219,6 +219,17 @@ void xProgressBar::paint()
|
|||
|
||||
i += j ;
|
||||
}
|
||||
|
||||
QColor gradColor_a1, gradColor_a2 ;
|
||||
gradColor_a1.setRgb(223, 134, 6);
|
||||
gradColor_a2.setRgb(248, 170, 59);
|
||||
linearGrad.setColorAt(0.00, gradColor_a1);
|
||||
linearGrad.setColorAt(0.16, gradColor_a2);
|
||||
linearGrad.setColorAt(1.00, gradColor_a1);
|
||||
painter->setBrush(linearGrad);
|
||||
|
||||
for(uint32_t i=0;i<_pinfo.chunks_in_progress.size();++i)
|
||||
painter->drawRect(rect.x() + hSpan+(int)rint(_pinfo.chunks_in_progress[i]*width/(float)ss), rect.y() + vSpan, (int)ceil(1.0f*width/(float)ss), rect.height() - 1 - vSpan * 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue