D18144: Implemented find function from console

Albert Astals Cid noreply at phabricator.kde.org
Sat Jan 12 18:21:43 GMT 2019


aacid added inline comments.

INLINE COMMENTS

> part.cpp:377
> +    // also connect to the find argument from terminal, searching only after loading file.
> +    connect(this, SIGNAL(completed()), this, SLOT(findTextOnStartUp()));
>      connect(this, &KParts::ReadOnlyPart::canceled, this, &Part::loadCancelled);

You don't need this, just do it after open.

> part.cpp:1716
>      {
>          m_viewportDirty.pageNumber = -1;
>  

That is, move the code from findTextOnStartUp here, also clean up the textToFind variable.

> part.h:413
> +        // String to search in document startup
> +        QString textToFind;
> +

Needs m_ prefix.

And also a better name, something m_textToFindOnOpen.

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D18144

To: joaonetto, #okular
Cc: ngraham, aacid, yurchor, okular-devel, darcyshen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20190112/61ef636c/attachment.html>


More information about the Okular-devel mailing list