diff options
Diffstat (limited to 'muse2/muse/arranger/pcanvas.cpp')
-rw-r--r-- | muse2/muse/arranger/pcanvas.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp index 1d7cfd54..d2dda050 100644 --- a/muse2/muse/arranger/pcanvas.cpp +++ b/muse2/muse/arranger/pcanvas.cpp @@ -1458,7 +1458,16 @@ void PartCanvas::drawItem(QPainter& p, const CItem* item, const QRect& rect) else { bool clone = part->events()->arefCount() > 1; p.setPen(QPen(Qt::black, 2, clone ? Qt::DashLine : Qt::SolidLine)); - p.setBrush(config.partColors[i]); + + //p.setBrush(config.partColors[i]); + QColor c(config.partColors[i]); + c.setAlpha(config.globalAlphaBlend); + p.setBrush(c); + //p.setBrush(QColor(config.partColors[i].red(), + // config.partColors[i].green(), + // config.partColors[i].blue(), + // 127)); + p.drawRect(r); } |