From fe060a4874fc72655cced0596ef610a13f5b0413 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Thu, 19 Apr 2018 23:41:14 +0200 Subject: [PATCH] Don't use qDebug().noquote() for now (bug #1169) --- pv/data/decodesignal.cpp | 6 ++++-- pv/globalsettings.cpp | 3 ++- pv/mainwindow.cpp | 3 ++- pv/session.cpp | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/pv/data/decodesignal.cpp b/pv/data/decodesignal.cpp index ecdacde..f1995dc 100644 --- a/pv/data/decodesignal.cpp +++ b/pv/data/decodesignal.cpp @@ -158,7 +158,8 @@ void DecodeSignal::reset_decode(bool shutting_down) if (!error_message_.isEmpty()) { error_message_ = QString(); - qDebug().noquote().nospace() << name() << ": Error cleared"; + // TODO Emulate noquote() + qDebug().nospace() << name() << ": Error cleared"; } decode_reset(); @@ -588,7 +589,8 @@ void DecodeSignal::restore_settings(QSettings &settings) void DecodeSignal::set_error_message(QString msg) { error_message_ = msg; - qDebug().noquote().nospace() << name() << ": " << msg; + // TODO Emulate noquote() + qDebug().nospace() << name() << ": " << msg; } uint32_t DecodeSignal::get_input_segment_count() const diff --git a/pv/globalsettings.cpp b/pv/globalsettings.cpp index 9f20b26..c77327c 100644 --- a/pv/globalsettings.cpp +++ b/pv/globalsettings.cpp @@ -107,7 +107,8 @@ void GlobalSettings::setValue(const QString &key, const QVariant &value) QSettings::setValue(key, value); - qDebug().noquote() << "Setting" << key << "changed to" << value; + // TODO Emulate noquote() + qDebug() << "Setting" << key << "changed to" << value; // Call all registered callbacks for (GlobalSettingsInterface *cb : callbacks_) diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 4fe483e..2537702 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -94,7 +94,8 @@ MainWindow::~MainWindow() void MainWindow::show_session_error(const QString text, const QString info_text) { - qDebug().noquote() << "Notifying user of session error:" << info_text; + // TODO Emulate noquote() + qDebug() << "Notifying user of session error:" << info_text; QMessageBox msg; msg.setText(text); diff --git a/pv/session.cpp b/pv/session.cpp index 87e9b3a..80dad66 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -301,7 +301,8 @@ void Session::restore_settings(QSettings &settings) set_device(device); start_capture([](QString infoMessage) { - qDebug().noquote() << "Session error:" << infoMessage; }); + // TODO Emulate noquote() + qDebug() << "Session error:" << infoMessage; }); set_name(QFileInfo(filename).fileName()); } -- 2.30.2