[Okular-devel] Help me find the code for Search

Albert Astals Cid aacid at kde.org
Sun Nov 3 22:46:20 UTC 2013


El Dilluns, 4 de novembre de 2013, a les 04:02:09, Manasij Mukherjee va 
escriure:
> Hello Everyone,
> I am new here and want to get started with Okular by adding an option for
> only matching whole words while searching.
> ( https://bugs.kde.org/show_bug.cgi?id=204709 )
> Can anyone point me to the file(s) which would be relevant for me?
> 
> So far, I have identified :
> ui/searchwidget.{cpp,h}
> ui/searchlineedit.{cpp,h}
> and the Document::searchText function in core/document.cpp
> 
> However, I do not understand the wizardry with QMetaObject yet.

Have you read the Qt docs about it? What don't you understand?

> Am I looking in the right places ?

Document::searchText documentation says
         * Searches the given @p text in the document.
So looks like a good starting point to me :-)

Cheers,
  Albert

> If not, what part of the codebase should I strive to understand first?
> 
> Manasij Mukherjee



More information about the Okular-devel mailing list