mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
expose complete url
This commit is contained in:
parent
e60bba5f6b
commit
f59404ed02
|
@ -140,7 +140,7 @@ QStringList DocumentItem::bookmarks() const
|
|||
{
|
||||
QStringList list;
|
||||
foreach(const KBookmark &bookmark, m_document->bookmarkManager()->bookmarks()) {
|
||||
list << bookmark.url().fragment();
|
||||
list << bookmark.url().prettyUrl();
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
|
|
@ -201,14 +201,14 @@ QStringList PageItem::bookmarks() const
|
|||
{
|
||||
QStringList list;
|
||||
foreach(const KBookmark &bookmark, m_documentItem.data()->document()->bookmarkManager()->bookmarks(m_viewPort.pageNumber)) {
|
||||
list << bookmark.url().fragment();
|
||||
list << bookmark.url().prettyUrl();
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
void PageItem::goToBookmark(const QString &bookmark)
|
||||
{
|
||||
Okular::DocumentViewport viewPort(bookmark);
|
||||
Okular::DocumentViewport viewPort(KUrl(bookmark).htmlRef());
|
||||
setPageNumber(viewPort.pageNumber);
|
||||
|
||||
//Are we in a flickable?
|
||||
|
|
Loading…
Reference in a new issue