use of QFileDialog

David Faure faure at kde.org
Sat Nov 5 11:07:09 UTC 2011


On Saturday 05 November 2011 11:46:51 Aaron J. Seigo wrote:
> hi :)
> 
> since QFileDialog now uses the platform dialog, including the KDE one, what
> do people think about replacing more direct usages of KFileDialog with
> QFileDialog? or is that already planned?
> 
> i just looked at KIconButton and KIconDialog today which are in kio/kfile/
> and it was interesting that the only reason those classes are in kfile is
> because they use KFileDialog and KImageFilePreview directly.
> 
> the usage of KImageFilePreview there is unecessary these days as the file
> dialog does very nice in-dialog previews and the user can turn the full
> preview on themselves quite easily. in fact, it's probably nicer to respect
> the user's settings for the file dialog than manually overriding things on
> them.
> 
> which just leaves KIconDialog/Button with KFileDialog usage. other than the
> preview widget, it seems its usage of the file dialog could easily be
> replaced with QFileDialog, and then KIconDialog/Button (after being split
> into two files as they should have been long ago :) could be moved into the
> appropriate split-from-kdeui library.

Sounds good.

I'm against s/KFileDialog/QFileDialog/ blindly everywhere, that will miss 
features, but in KIconDialog/Button it should be fine.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list