diff options
author | Tim E. Real <termtech@rogers.com> | 2010-12-19 07:56:15 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2010-12-19 07:56:15 +0000 |
commit | d393b6b9bbfeb4b31956a6c83302c4cee7856313 (patch) | |
tree | 2c46b71aabf3133cd876f899d523aea9c494d423 /muse2/muse/arranger/pcanvas.cpp | |
parent | cec04808207cf8fae367c4dc07ab672691db2e60 (diff) |
Fixed arranger part drawing borders. Used QPen::setCosmetic(true) when drawing.
Diffstat (limited to 'muse2/muse/arranger/pcanvas.cpp')
-rw-r--r-- | muse2/muse/arranger/pcanvas.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp index d2dda050..5b914952 100644 --- a/muse2/muse/arranger/pcanvas.cpp +++ b/muse2/muse/arranger/pcanvas.cpp @@ -1451,13 +1451,19 @@ void PartCanvas::drawItem(QPainter& p, const CItem* item, const QRect& rect) else if (part->selected()) { bool clone = part->events()->arefCount() > 1; //p.setPen(config.partColors[i]); - p.setPen(QPen(config.partColors[i], 2, clone ? Qt::DashLine : Qt::SolidLine)); + //p.setPen(QPen(config.partColors[i], 2, clone ? Qt::DashLine : Qt::SolidLine)); + QPen pen(config.partColors[i], 2, clone ? Qt::DashLine : Qt::SolidLine); + pen.setCosmetic(true); + p.setPen(pen); p.setBrush(Qt::black); p.drawRect(r); } else { bool clone = part->events()->arefCount() > 1; - p.setPen(QPen(Qt::black, 2, clone ? Qt::DashLine : Qt::SolidLine)); + //p.setPen(QPen(Qt::black, 0, clone ? Qt::DashLine : Qt::SolidLine)); + QPen pen(Qt::black, 2, clone ? Qt::DashLine : Qt::SolidLine); + pen.setCosmetic(true); + p.setPen(pen); //p.setBrush(config.partColors[i]); QColor c(config.partColors[i]); |