Add support for loading image plugins through the settings folder of the apps.

This commit is contained in:
luisangelsm
2026-03-14 09:23:20 +01:00
parent 3709b6e737
commit 754ea0c2f6
9 changed files with 52 additions and 3 deletions

View File

@ -1,5 +1,7 @@
#include "global_info_provider.h"
#include "yacreader_global.h"
#include <QImageReader>
#include <QPaintDevice>
#include <QtCore>
@ -24,6 +26,7 @@ QString YACReader::getGlobalInfo()
text.append("\nAPP INFORMATION\n");
QString supportedImageFormats = QImageReader::supportedImageFormats().join(", ");
text.append(QString("Image formats supported: %1\n").arg(supportedImageFormats));
text.append(QString("User image plugin folder: %1\n").arg(YACReader::getImageFormatsPluginsPath()));
// append if sqlite driver is available
#ifdef YACREADER_LIBRARY
text.append(QString("SQLite driver available: %1\n").arg(QSqlDatabase::isDriverAvailable("QSQLITE") ? "yes" : "no"));