Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 73677eaf authored by Albert Astals Cid's avatar Albert Astals Cid

Merge remote-tracking branch 'origin/Applications/15.08'

parents c743eceb a675670d
......@@ -2431,6 +2431,11 @@ void PageView::mouseReleaseEvent( QMouseEvent * e )
{
d->document->processAction( static_cast<Okular::ScreenAnnotation*>( ann )->action() );
}
else if ( ann->subType() == Okular::Annotation::AFileAttachment )
{
const Okular::FileAttachmentAnnotation * fileAttachAnnot = static_cast< Okular::FileAttachmentAnnotation * >( ann );
GuiUtils::saveEmbeddedFile( fileAttachAnnot->embeddedFile(), this );
}
}
#if 0
// a link can move us to another page or even to another document, there's no point in trying to
......@@ -3970,6 +3975,11 @@ void PageView::updateCursor( const QPoint &p )
setCursor( Qt::PointingHandCursor );
}
}
else if ( annotation->subType() == Okular::Annotation::AFileAttachment )
{
d->mouseOnRect = true;
setCursor( Qt::PointingHandCursor );
}
else
{
setCursor( Qt::OpenHandCursor );
......
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