Mercurial > hg > svgui
diff widgets/LevelPanWidget.cpp @ 930:86df7de08e03 tonioni
A number of fixes to level-pan button (including mute toggle)
author | Chris Cannam |
---|---|
date | Wed, 25 Mar 2015 10:55:09 +0000 |
parents | 20698aa6a517 |
children | 37bb4b416c52 |
line wrap: on
line diff
--- a/widgets/LevelPanWidget.cpp Wed Mar 25 10:33:19 2015 +0000 +++ b/widgets/LevelPanWidget.cpp Wed Mar 25 10:55:09 2015 +0000 @@ -286,8 +286,10 @@ pen.setWidthF(thin * 2); pen.setCapStyle(Qt::RoundCap); paint.setPen(pen); - paint.drawLine(rect.topLeft(), rect.bottomRight()); - paint.drawLine(rect.bottomLeft(), rect.topRight()); + paint.drawLine(cellCentre(rect, 0, -maxPan), + cellCentre(rect, maxLevel, maxPan)); + paint.drawLine(cellCentre(rect, maxLevel, -maxPan), + cellCentre(rect, 0, maxPan)); return; }