Review Request 121471: Port KDirSelectDialog to QFileDialog
Jan Grulich
jgrulich at redhat.com
Sun May 17 17:04:28 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121471/
-----------------------------------------------------------
(Updated Kvě. 17, 2015, 5:04 odp.)
Status
------
This change has been discarded.
Review request for KDE Frameworks, Bhushan Shah, David Faure, Lukáš Tinkl, and Laurent Montel.
Repository: ark
Description
-------
I ported KDirSelectDialog to QFileDialog to get rid of kdelibs4support in ExtractionDialog, but I run into one problem. This dialog needs to add additional config widget, this is possible with using setExtension(widget) or directly accessing layout and adding this widget directly to the layout. Problem is that both options work only when I don't use native file dialog, not mentioning that setExtension() is obsoleted and accesing directly to layout of QFileDialog relies on knowning internal implementation in Qt so if they change it, i.e they switch to another layout then QGridLayout, then it will be broken again. I also tried to implement own QFileDialog using KFileWidget, but problem is that KFileWidget works only for files and I need to select a directory. You can set option to display just directories, but selecting directories is unfortunately ignored. I'm open to a better solution, but I've spent quite a lot of time trying to find it, but unfortunately without any success.
Diffs
-----
app/batchextract.cpp 9480e99
kerfuffle/extractiondialog.h 5907403
kerfuffle/extractiondialog.cpp f602861
part/part.cpp 82d6f9c
Diff: https://git.reviewboard.kde.org/r/121471/diff/
Testing
-------
Thanks,
Jan Grulich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150517/8c443139/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list