summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--muse2/muse/arranger/pcanvas.cpp44
1 files changed, 21 insertions, 23 deletions
diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp
index 5b2c6bb3..88b613aa 100644
--- a/muse2/muse/arranger/pcanvas.cpp
+++ b/muse2/muse/arranger/pcanvas.cpp
@@ -2115,32 +2115,30 @@ void PartCanvas::drawItem(QPainter& p, const CItem* item, const QRect& rect)
else
p.setPen(part->selected() ? penSelect2V : penNormal2V);
-// if(rbx >= mrxs_0 && rbx <= mrxe_0) // Respect the requested drawing rectangle. Gives speed boost!
-// {
-// QLine l2(rbx, ys_0, rbx, ye_0); // Right
-// p.drawLine(l2); // Right line
-// }
-
-// if(((NPart*)item)->leftBorderTouches)
-// p.setPen(part->selected() ? penSelect1V : penNormal1V);
-// else
-// p.setPen(part->selected() ? penSelect2V : penNormal2V);
+ if(rbx >= mrxs_0 && rbx <= mrxe_0) // Respect the requested drawing rectangle. Gives speed boost!
+ {
+ QLine l2(rbx, ys_0, rbx, ye_0); // Right
+ p.drawLine(l2); // Right line
+ }
+
+ if(((NPart*)item)->leftBorderTouches)
+ p.setPen(part->selected() ? penSelect1V : penNormal1V);
+ else
+ p.setPen(part->selected() ? penSelect2V : penNormal2V);
-// if(xs_0 >= mrxs_0 && xs_0 <= mrxe_0)
-// {
-// QLine l4(xs_0, ys_0, xs_0, ye_0); // Left
-// p.drawLine(l4); // Left line
-// }
+ if(xs_0 >= mrxs_0 && xs_0 <= mrxe_0)
+ {
+ QLine l4(xs_0, ys_0, xs_0, ye_0); // Left
+ p.drawLine(l4); // Left line
+ }
-// p.setPen(part->selected() ? penSelect2H : penNormal2H);
+ p.setPen(part->selected() ? penSelect2H : penNormal2H);
-// // Respect the requested drawing rectangle. Gives speed boost!
-// QLine l1(lbx_c, ys_0, rbx_c, ys_0);
-// p.drawLine(l1); // Top line
-// QLine l3(lbx_c, ye_0, rbx_c, ye_0);
-// p.drawLine(l3); // Bottom line
-
- p.drawRoundedRect(lbx_c, ys_0, rbx_c-lbx_c, ye_0-ys_0, 5.0, 5.0);
+ // Respect the requested drawing rectangle. Gives speed boost!
+ QLine l1(lbx_c, ys_0, rbx_c, ys_0);
+ p.drawLine(l1); // Top line
+ QLine l3(lbx_c, ye_0, rbx_c, ye_0);
+ p.drawLine(l3); // Bottom line
#endif