mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Support for third party qt image plugins
This commit is contained in:
@ -23,6 +23,26 @@ enum YACReaderPageSortingMode {
|
||||
|
||||
void comic_pages_sort(QList<QString> &pageNames, YACReaderPageSortingMode sortingMode);
|
||||
|
||||
QStringList Comic::getSupportedImageFormats()
|
||||
{
|
||||
QList<QByteArray> supportedImageFormats = QImageReader::supportedImageFormats();
|
||||
QStringList supportedImageFormatStrings;
|
||||
for (QByteArray item : supportedImageFormats) {
|
||||
supportedImageFormatStrings.append(QString::fromLocal8Bit("*." + item));
|
||||
}
|
||||
return supportedImageFormatStrings;
|
||||
}
|
||||
|
||||
QStringList Comic::getSupportedImageLiteralFormats()
|
||||
{
|
||||
QList<QByteArray> supportedImageFormats = QImageReader::supportedImageFormats();
|
||||
QStringList supportedImageFormatStrings;
|
||||
for (QByteArray item : supportedImageFormats) {
|
||||
supportedImageFormatStrings.append(QString::fromLocal8Bit(item));
|
||||
}
|
||||
return supportedImageFormatStrings;
|
||||
}
|
||||
|
||||
const QStringList Comic::imageExtensions = QStringList() << "*.jpg"
|
||||
<< "*.jpeg"
|
||||
<< "*.png"
|
||||
|
Reference in New Issue
Block a user