mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-24 14:23:36 -05:00
fix black background in chunkmap display with Qt5 (patch from sehraf)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8294 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
482c488b46
commit
c1061a1e9d
@ -46,7 +46,7 @@ FileTransferInfoWidget::FileTransferInfoWidget(QWidget * /*parent*/, Qt::WindowF
|
||||
maxWidth = TaskGraphRect.width();
|
||||
maxHeight = 0;
|
||||
pixmap = QPixmap(size());
|
||||
pixmap.fill(this, 0, 0);
|
||||
pixmap.fill(Qt::transparent);
|
||||
|
||||
downloadedPixmap.load(":images/graph-downloaded.png");
|
||||
downloadingPixmap.load(":images/graph-downloading.png");
|
||||
@ -80,7 +80,7 @@ void FileTransferInfoWidget::updateDisplay()
|
||||
// pixmap = QPixmap(size());
|
||||
// pixmap.fill(this, 0, 0);
|
||||
pixmap = QPixmap(maxWidth, maxHeight);
|
||||
pixmap.fill(this, 0, 0);
|
||||
pixmap.fill(Qt::transparent);
|
||||
setFixedHeight(maxHeight);
|
||||
|
||||
QPainter painter(&pixmap);
|
||||
|
Loading…
Reference in New Issue
Block a user