Skip to content

Draft: Preview link as in #47

Som Kom requested to merge pidlap/okular:PreviewLinkWidget into master

I wanted a preview widget for links as suggested here #47 (closed) so I played around a bit I think its working. Its quite rough some help would be appreciated. I had some problems:

  • how do I jump to the right location? So far its just fixed the viewport.rePos returns false most of the time should I still use it?
  • this only works for cached pages (I assume) uncached pages either show up blank or low res (see pic 2) can I force render a page? I think I fixed this
  • is there a way to simply reuse the pageview? I assume it would save some code and allow for scrolling the second window in case the location isn't right. I tried adding another in part.cpp but that always leads to a crash when using the second pageview object.

image image

Edited by Som Kom

Merge request reports

Loading