Example #1
0
 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));
 }
Example #2
0
 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());
 }