mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
fixed display issue in transfers (bad colors in crosses)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2382 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7625238724
commit
f9a1bbf8c8
2 changed files with 6 additions and 0 deletions
|
@ -160,6 +160,7 @@ void DLListDelegate::paint(QPainter * painter, const QStyleOptionViewItem & opti
|
|||
// std::cerr << pinfo.cmap._map[i] << " " ;
|
||||
// std::cerr << std::endl ;
|
||||
|
||||
painter->save() ;
|
||||
xProgressBar progressBar(pinfo,option.rect, painter); // the 3rd param is the color schema (0 is the default value)
|
||||
if(pinfo.type == FileProgressInfo::DOWNLOAD_LINE)
|
||||
{
|
||||
|
@ -173,6 +174,8 @@ void DLListDelegate::paint(QPainter * painter, const QStyleOptionViewItem & opti
|
|||
}
|
||||
progressBar.setVerticalSpan(1);
|
||||
progressBar.paint(); // paint the progress bar
|
||||
|
||||
painter->restore() ;
|
||||
}
|
||||
painter->drawText(option.rect, Qt::AlignCenter, newopt.text);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue