Review Request 114745: [Kig] File Loading Based on MIME Types

David Faure faure at kde.org
Tue Dec 31 09:48:36 UTC 2013


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

Ship it!


Looks good.


kig/kig.cpp
<https://git.reviewboard.kde.org/r/114745/#comment33192>

    technically it's not loaded yet at this point



kig/kig.cpp
<https://git.reviewboard.kde.org/r/114745/#comment33193>

    outdated comment?



kig/kig.cpp
<https://git.reviewboard.kde.org/r/114745/#comment33194>

    QApplication::exit()
     (this doesn't require KApplication)


- David Faure


On Dec. 31, 2013, 2:48 a.m., David Narváez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/114745/
> -----------------------------------------------------------
> 
> (Updated Dec. 31, 2013, 2:48 a.m.)
> 
> 
> Review request for KDE Edu and David Faure.
> 
> 
> Repository: kig
> 
> 
> Description
> -------
> 
> These are changes I worked months ago when I found and fixed bug 322578. Back then I had a brief e-mail exchange with dfaure about this change and he thought it is better to load files based on their MIME types instead of the file extensions. Besides the fact that it loads the files  based on their MIME types, these changes also modernize the loading of the Kig part by using KService, and querying the KService for the supported MIME types to load. There's a noticeable change in the UI, see the attached picture.
> 
> 
> Diffs
> -----
> 
>   filters/filter.h 970da7b 
>   filters/filter.cc 8d5a676 
>   kig/kig.h fe56bfd 
>   kig/kig.cpp e426deb 
>   kig/kig_part.desktop 9c7139e 
> 
> Diff: https://git.reviewboard.kde.org/r/114745/diff/
> 
> 
> Testing
> -------
> 
> Loaded all files in the example folder of the kig repository, all loading OK. It lists exactly 8 files, same as my 4.12 installation of Kig.
> 
> 
> File Attachments
> ----------------
> 
> No file extensions shown in the Open File dialog
>   https://git.reviewboard.kde.org/media/uploaded/files/2013/12/31/87ba4f49-ab1e-411b-9491-422484d8f2a5__kignewfilters.png
> 
> 
> Thanks,
> 
> David Narváez
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20131231/84cce7ef/attachment-0001.html>


More information about the kde-edu mailing list