From d393b6b9bbfeb4b31956a6c83302c4cee7856313 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Sun, 19 Dec 2010 07:56:15 +0000 Subject: Fixed arranger part drawing borders. Used QPen::setCosmetic(true) when drawing. --- muse2/muse/arranger/pcanvas.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'muse2/muse/arranger/pcanvas.cpp') 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]); -- cgit v1.2.3