Qt TAS branch view background fill bug fix. Only draw in the visible area.

This commit is contained in:
mjbudd77 2021-12-29 21:34:12 -05:00
parent a891b080c5
commit 52792378c0
1 changed files with 2 additions and 1 deletions

View File

@ -730,7 +730,8 @@ void BRANCHES::paintEvent(QPaintEvent *event)
linearGrad.setColorAt(0, QColor(0xBF,0xE2,0xEF));
linearGrad.setColorAt(1, QColor(0xE5,0xFB,0xFF));
painter.fillRect( 0, 0, viewWidth, viewHeight, linearGrad );
//painter.fillRect( 0, 0, viewWidth, viewHeight, linearGrad );
painter.fillRect( viewRect, linearGrad );
// // lines
int branch, tempBranchX, tempBranchY, tempBranchX2, tempBranchY2, parentX, parentY, childID;