From bee399a7e17e7f37395190512db923e82f61f806 Mon Sep 17 00:00:00 2001 From: uncor3 Date: Tue, 28 Oct 2025 11:10:39 +0000 Subject: [PATCH] use qDebug for logging --- src/mainwindow.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c87bb16..a9b7403 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -27,7 +27,6 @@ #include #include #include -#include #ifdef WIN32 #include "platform/windows/diagnose_widget.h" @@ -231,13 +230,18 @@ MainWindow::MainWindow(QWidget *parent) irecv_device_event_subscribe(&context, handleCallbackRecovery, nullptr); if (res_recovery != IRECV_E_SUCCESS) { - printf("ERROR: Unable to subscribe to recovery device events.\n"); + qDebug() << "ERROR: Unable to subscribe to recovery device events. " + "Error code:" + << res_recovery; } + qDebug() << "Subscribed to recovery device events successfully."; idevice_error_t res = idevice_event_subscribe(handleCallback, nullptr); if (res != IDEVICE_E_SUCCESS) { - printf("ERROR: Unable to subscribe to device events.\n"); + qDebug() << "ERROR: Unable to subscribe to device events. Error code:" + << res; } + qDebug() << "Subscribed to device events successfully."; createMenus(); }