Qt TAS branch view background fill bug fix. Only draw in the visible area.
This commit is contained in:
parent
a891b080c5
commit
52792378c0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue