<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">n Tue, Mar 18, 2014 at 9:11 PM, Dominik Haumann <span dir="ltr"><<a href="mailto:dhaumann@kde.org" target="_blank">dhaumann@kde.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
getting an existing directory is still broken with current frameworks<br>
integration. A call of:<br>
  QString dir = QFileDialog::getExistingDirectory();<br>
results in this image: <a href="http://wstaw.org/m/2014/03/18/plasma-desktopdF1903.png" target="_blank">http://wstaw.org/m/2014/03/18/plasma-desktopdF1903.png</a><br>
<br>
Whereas what you actually want is this:<br>
  <a href="http://wstaw.org/m/2014/03/18/plasma-desktopdI1903.png" target="_blank">http://wstaw.org/m/2014/03/18/plasma-desktopdI1903.png</a><br>
(This was obtained with the KF5 version of: kdialog --getexistingdirectory ~<br>
<br>
Would be cool, if someone with more knowledge in frameworks integration could<br>
have a look here.<br>
<br>
Greetings,<br>
Dominik<br>
<br>
On Sunday 26 January 2014 17:15:08 Gregor Mi wrote:<br>
> Hi,<br>
><br>
> with 2c1ee08a21a1f16f9c2523718224598de8fc0d4f I added a test for<br>
> QFileDialog::getExistingDirectory.<br>
><br>
> When I execute<br>
><br>
> ./qfiledialogtest --staticFunction getExistingDirectory<br>
><br>
> then a dialog opens that lets the user select files but not directories.<br>
> This seems to be a bug.<br>
><br>
> Greetings<br>
><br>
> Gregor<br>
><br>
> _______________________________________________<br>
> Kde-frameworks-devel mailing list<br>
> <a href="mailto:Kde-frameworks-devel@kde.org">Kde-frameworks-devel@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/kde-frameworks-devel" target="_blank">https://mail.kde.org/mailman/listinfo/kde-frameworks-devel</a><br>
<br>
_______________________________________________<br>
Kde-frameworks-devel mailing list<br>
<a href="mailto:Kde-frameworks-devel@kde.org">Kde-frameworks-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-frameworks-devel" target="_blank">https://mail.kde.org/mailman/listinfo/kde-frameworks-devel</a><br>
</blockquote></div><br></div><div class="gmail_extra">Hi Dominik,</div><div class="gmail_extra">I've been looking though it and it seems like in this case we should be showing KDirSelectDialog instead of a QDialog+KFileWidget, depending on the result of options()->testOption(QFileDialogOptions::ShowDirsOnly).</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">I don't really have the time of doing it this week, but I'd certainly would like to have it. If you want to work on it I can review and give you a hand, if you can't this will have to be done before frameworksintegration is released.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Aleix</div></div>