KIO
kfilefilter.h
40 * @param filePatterns A list of file name patterns that should be included, e.g. ("*.cpp", "*.cxx").
41 * @param mimePatterns A list of MIME types that should be included, e.g. ("text/plain", "image/png").
44 explicit KFileFilter(const QString &label, const QStringList &filePatterns, const QStringList &mimePatterns);
QStringList filePatterns() const
List of file name patterns that are included by this filter.
Definition kfilefilter.cpp:125
QString toFilterString() const
Converts this filter to a string representation.
Definition kfilefilter.cpp:150
bool isEmpty() const
Whether the filer is empty, i.e. matches all files.
Definition kfilefilter.cpp:140
static QList< KFileFilter > fromMimeTypes(const QStringList &mimeTypes)
Creates filters from a list of MIME types.
Definition kfilefilter.cpp:200
bool operator==(const KFileFilter &other) const
Checks whether two filters are equal.
Definition kfilefilter.cpp:135
QStringList mimePatterns() const
List of MIME types that are included by this filter;.
Definition kfilefilter.cpp:130
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.