Review Request 123335: Fix native file dialogs from widgets QFileDialog

David Rosca nowrep at gmail.com
Fri May 15 18:10:45 UTC 2015



> On May 15, 2015, 6:08 p.m., Hrvoje Senjan wrote:
> > src/platformtheme/kdeplatformfiledialoghelper.cpp, line 300
> > <https://git.reviewboard.kde.org/r/123335/diff/1-2/?file=360850#file360850line300>
> >
> >     This somehow breaks dialogs from QFileDialog. e.g. standarddialogs' QFileDialog::getOpenFileName() from Qt examples, smplayer, vlc dialogs are all broken (they don't show). Strangely, removing this line fixes the problem here

Hmm, i don't think that's really possible.
Can you please show an example QFileDialog invocation that triggers this bug?


- David


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123335/#review80415
-----------------------------------------------------------


On April 17, 2015, 8 a.m., David Rosca wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123335/
> -----------------------------------------------------------
> 
> (Updated April 17, 2015, 8 a.m.)
> 
> 
> Review request for KDE Frameworks, David Faure and Lukáš Tinkl.
> 
> 
> Repository: frameworkintegration
> 
> 
> Description
> -------
> 
> 9814e4b773b2b34afafa0c5d242594bbb4f9a6ae fixed QML file dialogs but broke QtWidgets dialogs.
> 
> QFileDialog static functions - dialog would open, but any user interaction is blocked (cannot select files or click on anything).
> QFileDialog *d = new QFileDialog(parent); d->open(); - dialog would not open at all
> 
> The first issue occurs because exec() is called on already shown dialog. This is fixed by explicit hide() before calling exec() - kind of hacky :/
> The second issue is fixed by always calling show().
> 
> 
> Diffs
> -----
> 
>   autotests/CMakeLists.txt 00e4a41 
>   autotests/kfiledialog_unittest.cpp 45a139a 
>   autotests/kfiledialogqml_unittest.cpp PRE-CREATION 
>   autotests/qml/filedialog_parentless.qml PRE-CREATION 
>   autotests/qml/filedialog_withparent.qml PRE-CREATION 
>   src/platformtheme/kdeplatformfiledialoghelper.cpp 92ab107 
> 
> Diff: https://git.reviewboard.kde.org/r/123335/diff/
> 
> 
> Testing
> -------
> 
> QML dialogs: 
> example from bug 334963 works fine
> file dialog from plasma desktop settings -> wallpapers works fine
> 
> QtWidgets dialogs:
> static dialogs from qtbase/examples/widgets/dialogs/standarddialogs works fine
> QFileDialog *d = new QFileDialog(parent); d->open(); works fine
> test app: https://paste.kde.org/psddcng5n
> 
> I'm running Qt 5.4.1.
> 
> Are there any other types of dialogs that I forgot (and possibly broke)?
> 
> 
> Thanks,
> 
> David Rosca
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150515/dd17c971/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list