diff options
author | David Faure <faure@kde.org> | 2012-07-06 10:16:03 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-08 10:37:24 +0200 |
commit | 2c55847e9e14bed4579c622e87ae273f4549d598 (patch) | |
tree | 82d1cb0f9317f88dfe70b9d25c71709f1026f62e /src/corelib/mimetypes | |
parent | b069158ed35e7d39c3ac56ce4844c6ff1d69451f (diff) |
QMimeType: document preferredSuffix()/suffixes() better
Change-Id: Icf4aab3516cd622d9932e32cb0bd819bef22ce9b
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Reviewed-by: Wolf-Michael Bolle <wolf-michael.bolle@nokia.com>
Diffstat (limited to 'src/corelib/mimetypes')
-rw-r--r-- | src/corelib/mimetypes/qmimetype.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/mimetypes/qmimetype.cpp b/src/corelib/mimetypes/qmimetype.cpp index 2ae818d862..bcbd0f2d8a 100644 --- a/src/corelib/mimetypes/qmimetype.cpp +++ b/src/corelib/mimetypes/qmimetype.cpp @@ -349,8 +349,8 @@ QStringList QMimeType::allAncestors() const } /*! - \fn QStringList QMimeType::suffixes() const; Returns the known suffixes for the MIME type. + No leading dot is included, so for instance this would return "jpg", "jpeg" for image/jpeg. */ QStringList QMimeType::suffixes() const { @@ -371,8 +371,9 @@ QStringList QMimeType::suffixes() const } /*! - \fn QString QMimeType::preferredSuffix() const; Returns the preferred suffix for the MIME type. + No leading dot is included, so for instance this would return "pdf" for application/pdf. + The return value can be empty, for mime types which do not have any suffixes associated. */ QString QMimeType::preferredSuffix() const { |