mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-03 11:00:14 -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();
|
maxWidth = TaskGraphRect.width();
|
||||||
maxHeight = 0;
|
maxHeight = 0;
|
||||||
pixmap = QPixmap(size());
|
pixmap = QPixmap(size());
|
||||||
pixmap.fill(this, 0, 0);
|
pixmap.fill(Qt::transparent);
|
||||||
|
|
||||||
downloadedPixmap.load(":images/graph-downloaded.png");
|
downloadedPixmap.load(":images/graph-downloaded.png");
|
||||||
downloadingPixmap.load(":images/graph-downloading.png");
|
downloadingPixmap.load(":images/graph-downloading.png");
|
||||||
@ -80,7 +80,7 @@ void FileTransferInfoWidget::updateDisplay()
|
|||||||
// pixmap = QPixmap(size());
|
// pixmap = QPixmap(size());
|
||||||
// pixmap.fill(this, 0, 0);
|
// pixmap.fill(this, 0, 0);
|
||||||
pixmap = QPixmap(maxWidth, maxHeight);
|
pixmap = QPixmap(maxWidth, maxHeight);
|
||||||
pixmap.fill(this, 0, 0);
|
pixmap.fill(Qt::transparent);
|
||||||
setFixedHeight(maxHeight);
|
setFixedHeight(maxHeight);
|
||||||
|
|
||||||
QPainter painter(&pixmap);
|
QPainter painter(&pixmap);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user