mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
remove some lines that snuck into fix by accident
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1438 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
14b9914ba2
commit
635b6d78c4
@ -371,13 +371,13 @@ void QgsLegend::contentsMouseMoveEvent(QMouseEvent * e)
|
||||
{
|
||||
// scroll view if we're near the edge
|
||||
QPoint p(contentsToViewport(e->pos()));
|
||||
if (p.y() < 15)
|
||||
{
|
||||
scrollBy(0, -(15 - p.y()));
|
||||
} else if (p.y() > visibleHeight() - 15)
|
||||
{
|
||||
scrollBy(0, p.y() - visibleHeight() - 15)
|
||||
}
|
||||
//if (p.y() < 15)
|
||||
// {
|
||||
// scrollBy(0, -(15 - p.y()));
|
||||
//} else if (p.y() > visibleHeight() - 15)
|
||||
// {
|
||||
// scrollBy(0, p.y() - visibleHeight() - 15)
|
||||
// }
|
||||
|
||||
|
||||
// move item in list if we're dragging over another item
|
||||
|
Loading…
x
Reference in New Issue
Block a user