Switch all plugins to QLoggingCategory

This commit is contained in:
Mirco Miranda
2025-09-19 10:00:26 +02:00
parent a4e18734bd
commit fda751c641
17 changed files with 372 additions and 286 deletions

View File

@ -16,8 +16,6 @@
#include <QLoggingCategory>
#include <QRegularExpressionMatch>
#include <QDebug>
/* *** HDR_HALF_QUALITY ***
* If defined, a 16-bits float image is created, otherwise a 32-bits float ones (default).
*/
@ -425,7 +423,7 @@ bool HDRHandler::read(QImage *outImage)
QImage img;
if (!LoadHDR(s, h, img)) {
// qDebug() << "Error loading HDR file.";
// qCWarning(HDRPLUGIN) << "Error loading HDR file.";
return false;
}
@ -502,7 +500,7 @@ bool HDRHandler::canRead() const
bool HDRHandler::canRead(QIODevice *device)
{
if (!device) {
qWarning("HDRHandler::canRead() called with no device");
qCWarning(HDRPLUGIN) << "HDRHandler::canRead() called with no device";
return false;
}