Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
929:20698aa6a517 | 930:86df7de08e03 |
---|---|
284 | 284 |
285 if (!asIfEditable && m_level == 0) { | 285 if (!asIfEditable && m_level == 0) { |
286 pen.setWidthF(thin * 2); | 286 pen.setWidthF(thin * 2); |
287 pen.setCapStyle(Qt::RoundCap); | 287 pen.setCapStyle(Qt::RoundCap); |
288 paint.setPen(pen); | 288 paint.setPen(pen); |
289 paint.drawLine(rect.topLeft(), rect.bottomRight()); | 289 paint.drawLine(cellCentre(rect, 0, -maxPan), |
290 paint.drawLine(rect.bottomLeft(), rect.topRight()); | 290 cellCentre(rect, maxLevel, maxPan)); |
291 paint.drawLine(cellCentre(rect, maxLevel, -maxPan), | |
292 cellCentre(rect, 0, maxPan)); | |
291 return; | 293 return; |
292 } | 294 } |
293 | 295 |
294 pen.setWidthF(thin); | 296 pen.setWidthF(thin); |
295 pen.setCapStyle(Qt::FlatCap); | 297 pen.setCapStyle(Qt::FlatCap); |