When I was testing out the song position pointer paste stuff, I ended up lots
and lots of segments extending into the composition on both the y and x axis.
I would then switch the select tool and attempt to draw a rectangle selection
around the segments I wanted to delete, including segments which I could not
currently see. The behavior I was expecting was such that the canvas would
scroll horizontally and/or vertically to accomodate my selection rectangle,
but it did not.
Attached is a patch that scrolls the segment canvas vertically and/or
horizontally to accomdate the selection rectangle. I'm not sure if the
original behavior was intentional or not. I find the new behavior very
usefull.
--
Levi Burton
http://www.puresimplicity.net/~ldb/
Index: gui/segmenttool.cpp
===================================================================
RCS file: /cvsroot/rosegarden/gui/segmenttool.cpp,v
retrieving revision 1.25
diff -u -w -r1.25 segmenttool.cpp
--- gui/segmenttool.cpp 5 Jun 2003 19:14:25 -0000 1.25
+++ gui/segmenttool.cpp 7 Jun 2003 13:02:02 -0000
@@ -976,7 +976,7 @@
emit selectedSegments(getSelectedSegments());
}
}
- return NoFollow;
+ return FollowHorizontal | FollowVertical;
}
m_canvas->setCursor(Qt::sizeAllCursor);