https://bugs.kde.org/show_bug.cgi?id=456256

            Bug ID: 456256
           Summary: FileDialog does not honor
                    QFileDialog::HideNameFilterDetails
           Product: plasma-integration
           Version: git-stable-Plasma/5.24
          Platform: Debian testing
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: k...@oss.m-berberich.de
  Target Milestone: ---

Created attachment 150343
  --> https://bugs.kde.org/attachment.cgi?id=150343&action=edit
KDE-File-Dialog not showing filters after description

SUMMARY

The KDE file-dialog that replaces the QFileDialog on non-KDE applications does
not honor the QFileDialog::HideNameFilterDetails flag of QFileDialog. 
The QFileDialog can show the filters in parentheses behind the description,
p.e. “STL Mesh (*.stl)”
The KDE file dialog never shows the filter.

The transformation of the filters from QT to KDE syntax is done in
/src/platformtheme/kdeplatformfiledialoghelper.cpp:qt2KdeFilter()

Always show the filter can be done by editing this function

            str << it->mid(ob + 1, (cb - ob) - 1) << '|' << it->mid(0, ob) << "
(" << it->mid(ob + 1, (cb - ob) - 1) << ")";

but I think the correct way to do this would be either to have a
QFileDialog::HideNameFilterDetails functionality in the kde filedialog and
interface it or let KDEPlatformFileDialogHelper append the filter to the
description, depending on QFileDialog::HideNameFilterDetails

STEPS TO REPRODUCE
1. Start a non-KDE_application like FreeCAD
2. Try to save something (p.e. export a object)
3. See that filters are not shown in the drop-down-box

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to