summaryrefslogtreecommitdiff
path: root/muse2/muse/arranger/pcanvas.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-12-19 06:23:40 +0000
committerTim E. Real <termtech@rogers.com>2010-12-19 06:23:40 +0000
commitcec04808207cf8fae367c4dc07ab672691db2e60 (patch)
treef8032f9260f6d80e9078b4fdb63c5c436c3f72ea /muse2/muse/arranger/pcanvas.cpp
parent5f0c4bf5792d418a1e99a8e992547dd57272e14c (diff)
Fixed not saving part colours and part canvas background appearance settings.
Feature: Added 'global opaqueness' (transparency) appearance setting.
Diffstat (limited to 'muse2/muse/arranger/pcanvas.cpp')
-rw-r--r--muse2/muse/arranger/pcanvas.cpp11
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);
}