summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/macmainwindow.mm
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2013-08-27 14:10:45 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-29 10:25:01 +0200
commitee9b9d9fd9a714f97ed8f7e26404c2f113588e9c (patch)
tree3cf5ef3432cf746fa395fee1ff104524a20da8b2 /src/widgets/doc/snippets/macmainwindow.mm
parent468b539935331e7cd2eda8e5d2eef07b8e5508e9 (diff)
QFileDialog: add MIME Type filters
Currently just a convenience method for setNameFilters(), it uses QMimeType to create a name filter from the glob patterns and description defined in each MIME type. In the longer term, this API could be used to do proper mimetype-based filtering using QMimeDatabase::mimeTypeForFile() in the builtin QFileDialog (aka "not native"), instead of only looking at globs via the name filters. Change-Id: I0edccf5f30c514481b47cd100d743d1ed7a24024 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src/widgets/doc/snippets/macmainwindow.mm')
0 files changed, 0 insertions, 0 deletions