Changeset View
Changeset View
Standalone View
Standalone View
document/kpDocumentSaveOptions.cpp
Context not available. | |||||
40 | #include <QBitmap> | 40 | #include <QBitmap> | ||
---|---|---|---|---|---|
41 | #include <QImage> | 41 | #include <QImage> | ||
42 | #include <QString> | 42 | #include <QString> | ||
43 | #include <QImageWriter> | ||||
43 | 44 | | |||
44 | //--------------------------------------------------------------------- | 45 | //--------------------------------------------------------------------- | ||
45 | 46 | | |||
Context not available. | |||||
271 | return qualityIsInvalid (quality ()); | 272 | return qualityIsInvalid (quality ()); | ||
272 | } | 273 | } | ||
273 | 274 | | |||
275 | QStringList kpDocumentSaveOptions::availableMimeTypes() | ||||
276 | { | ||||
277 | QStringList mimeTypes; | ||||
278 | for (const auto &type : QImageWriter::supportedMimeTypes()) { | ||||
279 | mimeTypes << QString::fromLatin1(type); | ||||
280 | } | ||||
281 | return mimeTypes; | ||||
282 | } | ||||
283 | | ||||
274 | 284 | | |||
275 | // public static | 285 | // public static | ||
276 | QString kpDocumentSaveOptions::defaultMimeType (const KConfigGroup &config) | 286 | QString kpDocumentSaveOptions::defaultMimeType (const KConfigGroup &config) | ||
Context not available. |