summaryrefslogtreecommitdiff
path: root/muse2/muse
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-12-19 07:56:15 +0000
committerTim E. Real <termtech@rogers.com>2010-12-19 07:56:15 +0000
commitd393b6b9bbfeb4b31956a6c83302c4cee7856313 (patch)
tree2c46b71aabf3133cd876f899d523aea9c494d423 /muse2/muse
parentcec04808207cf8fae367c4dc07ab672691db2e60 (diff)
Fixed arranger part drawing borders. Used QPen::setCosmetic(true) when drawing.
Diffstat (limited to 'muse2/muse')
-rw-r--r--muse2/muse/arranger/pcanvas.cpp10
-rw-r--r--muse2/muse/gconfig.cpp2
-rw-r--r--muse2/muse/widgets/musewidgetsplug.cpp2
3 files changed, 10 insertions, 4 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]);
diff --git a/muse2/muse/gconfig.cpp b/muse2/muse/gconfig.cpp
index 6c0df0b8..79807cd8 100644
--- a/muse2/muse/gconfig.cpp
+++ b/muse2/muse/gconfig.cpp
@@ -9,7 +9,7 @@
#include "gconfig.h"
GlobalConfigValues config = {
- 128, // globalAlphaBlend
+ 150, // globalAlphaBlend
{
QColor(0xff, 0xff, 0xff), // palette
QColor(0xff, 0xff, 0xff),
diff --git a/muse2/muse/widgets/musewidgetsplug.cpp b/muse2/muse/widgets/musewidgetsplug.cpp
index 577a9c82..cd4cb18a 100644
--- a/muse2/muse/widgets/musewidgetsplug.cpp
+++ b/muse2/muse/widgets/musewidgetsplug.cpp
@@ -39,7 +39,7 @@ static const char* valu[] = {
};
GlobalConfigValues config = {
- 128, // globalAlphaBlend
+ 150, // globalAlphaBlend
{
QColor(0xff, 0xff, 0xff), // palette
QColor(0xff, 0xff, 0xff),