<div class="gmail_quote">2010/4/13 Lionel Chauvin <span dir="ltr">&lt;<a href="mailto:megabigbug@yahoo.fr">megabigbug@yahoo.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">&gt; The &quot;problem&quot; is that I had to change some behavior, in example the first<br>
&gt; item selection on popup. This to let rekonq use KUriFilter to resolve a<br>
&gt; typed url WITHOUT suggestions. That is the problem here.<br>
<br>
</div>I am not sure I understand what you want to do.<br>
<br>
If the first item is not selected, rekonq can&#39;t explain to the user what is<br>
done when he press enter. </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
For instance, he can&#39;t understand why &quot;<a href="http://www.kde-apps.org" target="_blank">http://www.kde-apps.org</a>&quot;  is launched<br>
when he types &quot;kde-apps&quot; and why it processes a google search if he types<br>
&quot;kde&quot;.<br></blockquote><div><br></div><div>That&#39;s the way firefox works, for instance. I don&#39;t say this is the best way to do. Indeed I said the opposite.</div><div>I&#39;m saying that this is the way things work well. And to reenable the other way, we need to no more fail </div>
<div>on UTF-8 resolutions.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It should always propose at least one suggestion. KUriFilter can help to build<br>
this suggestion or perhaps not, I didn&#39;t study this point. If it is too slow<br>
for process that, why we should keep it ?<br></blockquote><div><br></div><div>We have to keep KUriFilter, otherwise we cannot ensure things will work.</div><div>In a Qt-only environment you do something like:</div><div><br>
</div><div>QString (typed by user) --&gt; GuessUrlFromUserInput --&gt; QUrl --&gt; load</div><div><br></div><div>This chain works with real urls because GuessUrlFromUserInput is good and fast to &quot;guess&quot; QUrls, but it will fail on &quot;puzzle urls&quot;</div>
<div>eg: &quot;<a href="http://google.com/search?q=">google.com/search?q=</a>&quot; + something user typed, because of the encodings after the resolution.</div><div><br></div><div>In a KDE environment you need something like: </div>
<div> </div></div>QString (typed by user) --&gt; KUriFIlter --&gt; KUrl --&gt; load<div><br></div><div>This will work in the same way than the Qt chain and better, because:</div><div>- it supports kde web shortcuts (eg: &quot;gg:string&quot; urls)</div>
<div>- it really resolv and/or ping urls instead of &quot;trying to guess&quot; them.</div><div><br></div><div>so, typing &quot;ciao&quot;, GuessUrlFromString loads non extant &quot;<a href="http://ciao">http://ciao</a>&quot;, while KUriFilter try to understand if the host &quot;ciao&quot; exists. If it exists it loads &quot;<a href="http://ciao">http://ciao</a>&quot;, otherwise it searches the default search engine for it.</div>
<div>Anyway this costs time, that is hardcoded exactly to 5 seconds waiting for DNS and/or ping response.</div><div><br></div><div><br></div><div>All this to explain why KUriFilter is a must for every KDE network application. Hope this helps.</div>
<div><br></div><div>Regards,</div>