Review Request 121471: Port KDirSelectDialog to QFileDialog
Jan Grulich
jgrulich at redhat.com
Mon Dec 15 09:59:47 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121471/
-----------------------------------------------------------
(Updated Pro. 15, 2014, 9:59 dop.)
Review request for KDE Frameworks, Bhushan Shah and Lukáš Tinkl.
Changes
-------
Added Lukáš Tinkl, he was trying to find the solution with me.
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/20141215/33510b33/attachment.html>
More information about the Kde-frameworks-devel
mailing list