mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Replace remaining qDebug()s by report_info()
The only case left is in android.cpp, though that is only compiled when compiling the full desktop app on Android. I.e. never. So don't bother for now. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8867edffe8
commit
b320942343
8 changed files with 18 additions and 18 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include "core/divesite.h"
|
||||
#include "core/divelog.h"
|
||||
#include "core/device.h"
|
||||
#include "core/errorhelper.h"
|
||||
#include "core/trip.h"
|
||||
#include "core/import-csv.h"
|
||||
#include "core/xmlparams.h"
|
||||
|
|
@ -518,7 +519,7 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy)
|
|||
headers.append("Sample pressure");
|
||||
} else {
|
||||
// We do not know about this value
|
||||
qDebug() << "Seabear import found an un-handled field: " << columnText;
|
||||
report_info("Seabear import found an un-handled field: %s", qPrintable(columnText));
|
||||
headers.append("");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ namespace {
|
|||
extern "C" int updateProgress(const char *text)
|
||||
{
|
||||
if (verbose)
|
||||
qDebug() << "git storage:" << text;
|
||||
report_info("git storage: %s", text);
|
||||
if (progressDialog) {
|
||||
// apparently we don't always get enough space to show the full label
|
||||
// so let's manually make enough space (but don't shrink the existing size)
|
||||
|
|
@ -1567,7 +1567,7 @@ void MainWindow::hideProgressBar()
|
|||
void MainWindow::divesChanged(const QVector<dive *> &dives, DiveField)
|
||||
{
|
||||
for (struct dive *d: dives) {
|
||||
qDebug() << "dive #" << d->number << "changed, cache is" << (dive_cache_is_valid(d) ? "valid" : "invalidated");
|
||||
report_info("dive #%d changed, cache is %s", d->number, dive_cache_is_valid(d) ? "valid" : "invalidated");
|
||||
// a brute force way to deal with that would of course be to call
|
||||
// invalidate_dive_cache(d);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <QQmlContext>
|
||||
#include <QDebug>
|
||||
#include <QQuickItem>
|
||||
#include <QModelIndex>
|
||||
|
||||
#include "mapwidget.h"
|
||||
#include "core/divesite.h"
|
||||
#include "core/errorhelper.h"
|
||||
#include "core/selection.h"
|
||||
#include "map-widget/qmlmapwidgethelper.h"
|
||||
#include "qt-models/maplocationmodel.h"
|
||||
|
|
@ -37,7 +37,7 @@ void MapWidget::doneLoading(QQuickWidget::Status status)
|
|||
{
|
||||
// the default map widget QML failed; load the error QML.
|
||||
if (source() == urlMapWidget && status != QQuickWidget::Ready) {
|
||||
qDebug() << urlMapWidget << "failed to load with status:" << status;
|
||||
report_info("%s failed to load with status: %d", qPrintable(urlMapWidget.toString()), static_cast<int>(status));
|
||||
setSource(urlMapWidgetError);
|
||||
return;
|
||||
} else if (source() == urlMapWidgetError) { // the error QML finished loading.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue