Use user preferred application to preview files.
Review Request #103221 - Created Nov. 23, 2011 and discarded
Use user preferred application to preview files. For now user has to delete every read only kpart from list to use other application as defcault.
Set kate as default, rekonq as second. Result: file opened with kate. Set rekonq as default, kate as second. Result: file opened with rekonq.
The patch as it stands ends up effectively disabling the preview dialog, which is a no-go -- calling KMimeTypeTrader::query() without specifying the service type will use "Application" as default and all files will be previewed externally (there is another bug for allowing a user to choose to view a file externally, but that's another issue). The related bug is a tricky issue whose proper fix I still don't know -- see http://article.gmane.org/gmane.comp.kde.devel.core/59514