diff options
author | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-12-31 00:09:43 +0000 |
---|---|---|
committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2010-12-31 00:09:43 +0000 |
commit | 3a6b421ef02d7defbc6207fdd8fe7fa5608fa2bc (patch) | |
tree | 62268c83eb7d4a83a55ef0eabdd55293d9c4c436 /muse2/muse | |
parent | 93be6bea35c4cbddf9f6846d6a4da1b363e10cd2 (diff) |
In ctrl canvas, draw the grid before anything else
Diffstat (limited to 'muse2/muse')
-rw-r--r-- | muse2/muse/ctrl/ctrlcanvas.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/muse2/muse/ctrl/ctrlcanvas.cpp b/muse2/muse/ctrl/ctrlcanvas.cpp index bf943173..0eb51363 100644 --- a/muse2/muse/ctrl/ctrlcanvas.cpp +++ b/muse2/muse/ctrl/ctrlcanvas.cpp @@ -1389,6 +1389,13 @@ void CtrlCanvas::pdraw(QPainter& p, const QRect& rect) int w = rect.width() + 2; int h = rect.height(); + //--------------------------------------------------- + // draw the grid + //--------------------------------------------------- + + p.save(); + View::pdraw(p, rect); + p.restore(); //--------------------------------------------------- // draw Canvas Items @@ -1412,10 +1419,6 @@ void CtrlCanvas::pdraw(QPainter& p, const QRect& rect) pdrawItems(p, rect, curPart, true, true); } - p.save(); - View::pdraw(p, rect); - p.restore(); - //--------------------------------------------------- // draw marker //--------------------------------------------------- |