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:
electron128 2015-05-26 12:21:48 +00:00
parent 482c488b46
commit c1061a1e9d

View File

@ -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);