diff --git a/src/core/atcore.cpp b/src/core/atcore.cpp --- a/src/core/atcore.cpp +++ b/src/core/atcore.cpp @@ -406,8 +406,8 @@ { if (state != d->printerState) { qCDebug(ATCORE_CORE) << QStringLiteral("Atcore state changed from [%1] to [%2]") - .arg(QVariant::fromValue(d->printerState).value()) - .arg(QVariant::fromValue(state).value()); + .arg(QVariant::fromValue(d->printerState).value(), + QVariant::fromValue(state).value()); d->printerState = state; if (state == AtCore::FINISHEDPRINT && d->sdCardPrinting) { //Clean up the sd card print diff --git a/src/core/printthread.cpp b/src/core/printthread.cpp --- a/src/core/printthread.cpp +++ b/src/core/printthread.cpp @@ -176,8 +176,8 @@ } if (newState != d->state) { qCDebug(PRINT_THREAD) << QStringLiteral("State changed from [%1] to [%2]") - .arg(QVariant::fromValue(d->state).value()) - .arg(QVariant::fromValue(newState).value()); + .arg(QVariant::fromValue(d->state).value(), + QVariant::fromValue(newState).value()); disconnect(d->core, &AtCore::stateChanged, this, &PrintThread::setState); d->state = newState; emit(stateChanged(d->state)); diff --git a/testclient/mainwindow.cpp b/testclient/mainwindow.cpp --- a/testclient/mainwindow.cpp +++ b/testclient/mainwindow.cpp @@ -385,9 +385,9 @@ break; } - msg.append(QString::fromLatin1("[%1] : %2")); - msg = msg.arg(QString::number(number)) - .arg(QString::number(temp)); + msg.append(QString::fromLatin1("[%1] : %2").arg( + QString::number(number), QString::number(temp) + )); logWidget->appendLog(msg); }