[office/alkimia/8.2] /: Always use class-style calls to qDebug()

Ralf Habacker <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit fb2e84e3cea55de555db08569a84289876d15dcb by Ralf Habacker.
Committed on 17/08/2026 at 20:11.
Pushed by habacker into branch '8.2'.

Always use class-style calls to qDebug()

(cherry picked from commit 2219e7ab7f0f04cc2ed3f585e72caee9a944b754)

M  +2    -1    autotests/test-qwebengine-offscreen.cpp
M  +4    -2    src/alkfinancequoteprocess.cpp

https://invent.kde.org/office/alkimia/-/commit/fb2e84e3cea55de555db08569a84289876d15dcb

diff --git a/autotests/test-qwebengine-offscreen.cpp b/autotests/test-qwebengine-offscreen.cpp
index 5d766f30..8187fd69 100644
--- a/autotests/test-qwebengine-offscreen.cpp
+++ b/autotests/test-qwebengine-offscreen.cpp
@@ -5,6 +5,7 @@
 
 #include "alktestdefs.h"
 
+#include "alkdebug.h"
 #include "../3rdparty/qtwebengine/tests/auto/util/util.h"
 #include "test.h"
 
@@ -40,7 +41,7 @@ void TestQWebEngineOffScreen::toHtml()
     CallbackSpy<QString> spy;
     page.toHtml(spy.ref());
     QString html = spy.waitForResult();
-    qDebug() << html;
+    alkDebug() << html;
     QVERIFY(html.contains(TEST_LAUNCH_JAVASCRIPT_EXPECTED));
 }
 
diff --git a/src/alkfinancequoteprocess.cpp b/src/alkfinancequoteprocess.cpp
index 362c07f3..e0b0d252 100644
--- a/src/alkfinancequoteprocess.cpp
+++ b/src/alkfinancequoteprocess.cpp
@@ -9,6 +9,8 @@
 
 #include "alkfinancequoteprocess.h"
 
+#include "alkdebug.h"
+
 #include <QMap>
 #include <QString>
 #include <QtDebug>
@@ -106,7 +108,7 @@ void AlkFinanceQuoteProcess::testLaunch(const QString& scriptPath)
 {
     clearProgram();
 
-    qDebug() << "running perl" << scriptPath << "-t";
+    alkDebug() << "running perl" << scriptPath << "-t";
 
     *this << "perl" << scriptPath << "-t";
     setOutputChannelMode(KProcess::OnlyStdoutChannel);
@@ -120,7 +122,7 @@ void AlkFinanceQuoteProcess::launch(const QString &scriptPath)
 {
     clearProgram();
 
-    qDebug() << "running" << "perl" << scriptPath << "-l";
+    alkDebug() << "running" << "perl" << scriptPath << "-l";
 
     *this << "perl" << scriptPath << "-l";
     setOutputChannelMode(KProcess::OnlyStdoutChannel);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.