Commit 6b2a79d9 authored by Enrico Ros's avatar Enrico Ros
Browse files

Re-enabled link following.

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=359322
parent d9ac2519
...@@ -483,12 +483,12 @@ void PageView::contentsMouseMoveEvent( QMouseEvent * e ) ...@@ -483,12 +483,12 @@ void PageView::contentsMouseMoveEvent( QMouseEvent * e )
} }
else else
{ {
/* // detect the underlaying page (if present) // detect the underlaying page (if present)
PageViewItem * pageItem = pickItemOnPoint( e->x(), e->y() ); PageViewItem * pageItem = pickItemOnPoint( e->x(), e->y() );
if ( PageViewItem ) if ( pageItem )
{ {
int pageX = e->x() - childX( pageItem ), int pageX = e->x() - pageItem->geometry().left(),
pageY = e->y() - childY( pageItem ); pageY = e->y() - pageItem->geometry().top();
// check if over a KPDFActiveRect // check if over a KPDFActiveRect
bool onActiveRect = pageItem->page()->hasActiveRect( pageX, pageY ); bool onActiveRect = pageItem->page()->hasActiveRect( pageX, pageY );
...@@ -506,7 +506,7 @@ void PageView::contentsMouseMoveEvent( QMouseEvent * e ) ...@@ -506,7 +506,7 @@ void PageView::contentsMouseMoveEvent( QMouseEvent * e )
setCursor( onLink ? pointingHandCursor : arrowCursor ); setCursor( onLink ? pointingHandCursor : arrowCursor );
} }
} }
*/ } }
break; break;
case MouseSelection: case MouseSelection:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment