Review Request 119126: KMimeTypeChooser: hide Edit button if keditfiletype5 isn't found.

Mark Gaiser markg85 at gmail.com
Sat Jul 5 18:19:29 UTC 2014



> On jul 5, 2014, 11:28 a.m., Mark Gaiser wrote:
> > src/kmimetypechooser.cpp, line 64
> > <https://git.reviewboard.kde.org/r/119126/diff/1/?file=287325#file287325line64>
> >
> >     static const QString s_keditfiletypeExecutable = QStringLiteral("keditfiletype5");
> >     
> >     Then you can just use s_keditfiletypeExecutable directly instead of QString::fromLatin1... which makes the arguments a bit shorter
> 
> David Faure wrote:
>     Please read https://git.reviewboard.kde.org/r/119079/#comment42878

I didn't know that. Thank you for the pointer. I don't think any of that information is mentioned in the QStringLiteral documentation. It is being advertised as "use it if you have a static string that reminas the same". Perhaps the message you pointed me to should be added to the Qt documentation?


- Mark


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119126/#review61641
-----------------------------------------------------------


On jul 5, 2014, 10:30 a.m., David Faure wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119126/
> -----------------------------------------------------------
> 
> (Updated jul 5, 2014, 10:30 a.m.)
> 
> 
> Review request for KDE Frameworks, Christoph Feck and Jonathan Riddell.
> 
> 
> Repository: kwidgetsaddons
> 
> 
> Description
> -------
> 
> KMimeTypeChooser: hide Edit button if keditfiletype5 isn't found.
> 
> 
> Diffs
> -----
> 
>   src/kmimetypechooser.cpp 3caf6fa95ace370fc14721fbfa7eb1aa782489a0 
> 
> Diff: https://git.reviewboard.kde.org/r/119126/diff/
> 
> 
> Testing
> -------
> 
> ./tests/kmimetypechoosertest, before and after removing the keditfiletype5 binary.
> 
> 
> Thanks,
> 
> David Faure
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140705/70defad3/attachment.html>


More information about the Kde-frameworks-devel mailing list