<table><tr><td style="">ngraham added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12130">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D12130#250476" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D12130#250476</a>, <a href="https://phabricator.kde.org/p/rkflx/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@rkflx</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D12130#245921" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D12130#245921</a>, <a href="https://phabricator.kde.org/p/ngraham/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@ngraham</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>I might need some help with this. It seems that the apps whose save dialogs show a combobox in place of a filter list are creating a <tt style="background: #ebebeb; font-size: 13px;">QDialog</tt> and setting the Mime types list with <tt style="background: #ebebeb; font-size: 13px;">QDialog::setMimeTypeFilter()</tt>. I haven't yet managed to figure out how this call is intercepted and replaced with a KFileDialog, or how KFileDialog can detect that there's a combobox of MIME types instead of a filter widget.</p></div>
</blockquote>
<p>In Gwenview, grep for "Save Image" (has prepopulated combobox) and "Open Image" (does not have combobox, but editable and prepopulated filter). The difference seems to be the missing <tt style="background: #ebebeb; font-size: 13px;">selectMimeTypeFilter</tt> for the latter.</p>
<p>Note than in your comment you are referring to <tt style="background: #ebebeb; font-size: 13px;">setMimeTypeFilter[s]</tt>, which for Gwenview is called in both cases, thus not leading into a code path you are interested in.</p>
<p>Did not yet have the time (with all the other Diffs to comment on ;) to look into how this translates to <tt style="background: #ebebeb; font-size: 13px;">KFileDialog</tt>, but does this help already?</p></div>
</blockquote>
<p>Yes, and I did more investigation myself, and all the glue is in plasma-integration. Some changes might be needed there too (or maybe <em>all</em> the changes will be needed there, we'll see!)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12130">https://phabricator.kde.org/D12130</a></div></div><br /><div><strong>To: </strong>ngraham, Frameworks, VDG, bruns, alexeymin, rkflx, abetts<br /><strong>Cc: </strong>safaalfulaij, davidc, ltoscano, cfeck, rkflx, alexeymin, abetts, bruns, michaelh<br /></div>