> On June 25, 2013, 6:46 a.m., Kevin Ottens wrote:
> > kio/kfile/kurlrequester.cpp, line 483
> > <http://git.reviewboard.kde.org/r/111184/diff/2/?file=165624#file165624line483>
> >
> >     Why don't you use KUrlMimeData like the original code in KLineEdit? 
> > It'll be more robust AFAICT.

I'm using hasUrls() instead because KUrlMimeData returns a list of urls, which 
is more expensive than what Qt does (a string comparison). 

Also, if our way of checking URLs is better than the way Qt uses, we should 
contribute it to Qt instead of avoid using their methods (we are going to rely 
a lot more on Qt since KF5, so we have to trust what Qt does).


- Albert


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


On June 25, 2013, 10:46 a.m., Albert Vaca Cintora wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/111184/
> -----------------------------------------------------------
> 
> (Updated June 25, 2013, 10:46 a.m.)
> 
> 
> Review request for KDE Frameworks.
> 
> 
> Description
> -------
> 
> KLineEdit and KComboBox had the property enableUrlDrops that was added to use 
> it in KUrlRequester. Since KUrlRequester is part of KIO, it can not use 
> Kde4Support and should be ported to use QLineEdit and QComboBox. As I said on 
> my email to the frameworks list, it was easier to implement this directly in 
> KUrlRequester than patching Qt, even though it was originally planned as a Qt 
> task. It was my intention to also remove that property from KLineEdit and 
> KComboBox, but finally I didn't include it in the patch (see Ervin's comment 
> in the mailing list).
> 
> In the patch I have also added a TODO because I think it would be good to 
> detect any url without needing the mimetype to be set, but I have not done it 
> yet because it should be discussed first.
> 
> (Reviewed by aacid and apol)
> 
> 
> Diffs
> -----
> 
>   KDE5PORTING.html ba67bdc 
>   kdeui/widgets/kcombobox.h ccb019d 
>   kdeui/widgets/klineedit.h 7ac22f6 
>   kio/kfile/kurlrequester.cpp fa6b234 
> 
> Diff: http://git.reviewboard.kde.org/r/111184/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Albert Vaca Cintora
> 
>

_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel

Reply via email to