-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q4Wine file selectors filters files with upper case extension #94
Comments
Hi Andre Thank you for bug report. Just wonder which one Qt library (4.x or 5.x) you are using with q4wine? On Oct 29, 2016 1:38 AM, "Andre" notifications@github.com wrote:
|
Hi, Q4Wine uses Qt 5.7.0 for me. |
Hi @knochenhans I just tried and I am able to see 'TEST.EXE' file in file selector. Was testing both: File -> Run and Programs -> Run -> Browse... Are you getting this error in some specific place? |
I didn't do anything specific, happens to me with File -> Run and Programs -> Run -> Browse.... Here is a screenshot (with a lot files ending on EXE hidden). Not sure why my file selector looks completely different, seems the standard file selector from GTK3 is used in my case. Could this have something to do with the problem? |
Yeah. Here can be an issue with this... By default, the native file dialog is used unless you use a subclass of QFileDialog that contains the Q_OBJECT macro, or the platform does not have a native dialog of the type that you require. So for KDE you will see File Dialog selector created by KDE team instead of Qt build-in. Also, by default, file filters used with Qt/KDE file selectors are case insensitive: http://doc.qt.io/qt-5/qdir.html#Filter-enum unless I have added Also, there is a possibility to force to use Qt build-in dialog, so if you wish, I can add an option for this. |
I have the same problem (MATE 1.16.0, GTK+ filechooser). It seems uppercase extensions are needed in the filters, for example: --- a/src/q4wine-gui/run.cpp
+++ b/src/q4wine-gui/run.cpp
@@ -340,7 +340,7 @@ void Run::cmdGetProgram_Click(){
dialog.setWindowTitle(tr("Open Exe file"));
dialog.setDirectory(searchPath);
dialog.setFileMode(QFileDialog::ExistingFile);
- dialog.setNameFilter(tr("Exe, MSI, BAT files (*.exe *.msi *.bat);;Exe files (*.exe);;MSI files (*.msi);;BAT files (*.bat);;All files (*)"));
+ dialog.setNameFilter(tr("Exe, MSI, BAT files (*.exe *.msi *.bat *.EXE *.MSI *.BAT);;Exe files (*.exe *.EXE);;MSI files (*.msi *.MSI);;BAT files (*.bat *.BAT);;All files (*)"));
//dialog.setSidebarUrls(prefix_urls);
#if QT_VERSION >= 0x040500 |
Hi @kakurasan I have examined sources for some other Qt projects and none are defining filters with uppercase separately. I believe this should be fixed in the MATE's file chooser code instead. I can add uppercase definitions as a temporary workaround, but I will need you to provide a link to bug report for MATE project :) |
This is a bug in Qt, not a DE-related bug. I can see the files with uppercase extensions only when the filter "All files" is selected. This is not the expected behavior because all other filters don't work as expected (but I think adding "All files" is an enhancement).
This is easy but sounds not user-friendly for GTK+ Desktop Environment users. |
ic. Anyway thanks for the link. Will add an workaround as requested. |
workaround for https://bugreports.qt.io/browse/QTBUG-51712 has been added as requested: b7ae42c Thanks for reporting. Reopen if needed. |
Hi, hope this is the right place for bugs :)
The file selectors in Q4Wine filters away files which extension are in uppercase (e.g. "WINWORD.EXE"), which makes it cumbersome or even impossible to select such files, because there's no way to turn of the filter completely in the file selector.
I'm using Q4Wine 1.3.2.0 (git via AUR) on Arch Linux with MATE Desktop 1.16.1.
The text was updated successfully, but these errors were encountered: