}
/*!
- \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
{
}
/*!
- \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
{
QTest::newRow("mimetype with a single pattern") << "application/pdf" << "*.pdf" << "pdf";
QTest::newRow("mimetype with multiple patterns") << "application/x-kpresenter" << "*.kpr;*.kpt" << "kpr";
+ QTest::newRow("jpeg") << "image/jpeg" << "*.jpe;*.jpg;*.jpeg" << "jpeg";
//if (KMimeType::sharedMimeInfoVersion() > KDE_MAKE_VERSION(0, 60, 0)) {
QTest::newRow("mimetype with many patterns") << "application/vnd.wordperfect" << "*.wp;*.wp4;*.wp5;*.wp6;*.wpd;*.wpp" << "wp";
//}