[Okular-devel] Review Request 108614: Open url in browser

Jaydeep Solanki jaydp17 at gmail.com
Sun Feb 24 01:55:56 UTC 2013



> On Feb. 21, 2013, 3:29 p.m., Albert Astals Cid wrote:
> > ui/pageview.cpp, line 2185
> > <http://git.reviewboard.kde.org/r/108614/diff/3/?file=114545#file114545line2185>
> >
> >     This regexp still needs some tweaking, right now if i pass "holahttps://okular.org" it returns https://okular.org that in my opinion is not correct. You should enforce spaces (or newlines or tabs) around the regexp to make sure the url is a single word. Also it would be cool if you could write down all the urls you've used to positively and negatively test the regexp so we can put it in a testcase
> 
> Jaydeep Solanki wrote:
>     You mean "holahttps://okular.org" should not be detected as an url, & "hola https://okular.org" should be.
>     Am I right ??
> 
> Albert Astals Cid wrote:
>     Exactly
> 
> Mailson Menezes wrote:
>     Try to have a look on how konversation extracts url from strings. More precisely the function extractUrlData in common.cpp

thanks, it helped a lot.


- Jaydeep


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/108614/#review27846
-----------------------------------------------------------


On Feb. 24, 2013, 1:55 a.m., Jaydeep Solanki wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/108614/
> -----------------------------------------------------------
> 
> (Updated Feb. 24, 2013, 1:55 a.m.)
> 
> 
> Review request for Okular.
> 
> 
> Description
> -------
> 
> When selected text is right clicked, it checks for a url, if found, a QAction is added to open the url in the default browser.
> 
> 
> This addresses bug 281027.
>     http://bugs.kde.org/show_bug.cgi?id=281027
> 
> 
> Diffs
> -----
> 
>   ui/pageview.cpp 60a273d 
> 
> Diff: http://git.reviewboard.kde.org/r/108614/diff/
> 
> 
> Testing
> -------
> 
> just check if the icon appears properly, because I have an issue with the icon.
> 
> 
> Thanks,
> 
> Jaydeep Solanki
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20130224/5f681183/attachment-0001.html>


More information about the Okular-devel mailing list