From cec04808207cf8fae367c4dc07ab672691db2e60 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Sun, 19 Dec 2010 06:23:40 +0000 Subject: Fixed not saving part colours and part canvas background appearance settings. Feature: Added 'global opaqueness' (transparency) appearance setting. --- muse2/muse/arranger/pcanvas.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'muse2/muse/arranger/pcanvas.cpp') 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); } -- cgit v1.2.3