[office/alkimia] /: Always use class-style calls to qDebug()
Ralf Habacker <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 2219e7ab7f0f04cc2ed3f585e72caee9a944b754 by Ralf Habacker.
Committed on 17/08/2026 at 20:10.
Pushed by habacker into branch 'master'.
Always use class-style calls to qDebug()
M +2 -1 autotests/test-qwebengine-offscreen.cpp
M +4 -2 src/alkfinancequoteprocess.cpp
https://invent.kde.org/office/alkimia/-/commit/2219e7ab7f0f04cc2ed3f585e72caee9a944b754
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);