OkularBookmarkAction( const Okular::DocumentViewport& vp, const KBookmark& bk, KBookmarkOwner* owner, QObject *parent ) : KBookmarkAction( bk, owner, parent ) { if ( vp.isValid() ) setText( QString::number( vp.pageNumber + 1 ) + QStringLiteral(" - ") + text() ); setProperty("pageNumber", vp.pageNumber + 1); setProperty("htmlRef", bk.url().fragment(QUrl::FullyDecoded)); }
OkularBookmarkAction( const Okular::DocumentViewport& vp, const KBookmark& bk, KBookmarkOwner* owner, QObject *parent ) : KBookmarkAction( bk, owner, parent ) { if ( vp.isValid() ) setText( QString::number( vp.pageNumber + 1 ) + " - " + text() ); setProperty("pageNumber", vp.pageNumber + 1); setProperty("htmlRef", bk.url().htmlRef()); }