From: Soeren Apel Date: Thu, 19 Apr 2018 21:41:14 +0000 (+0200) Subject: Don't use qDebug().noquote() for now (bug #1169) X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=fe060a4874fc72655cced0596ef610a13f5b0413 Don't use qDebug().noquote() for now (bug #1169) --- diff --git a/pv/data/decodesignal.cpp b/pv/data/decodesignal.cpp index ecdacdef..f1995dca 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 9f20b269..c77327c3 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 4fe483ef..25377024 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 87e9b3a5..80dad66e 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()); }