From 439c082257448309073c312f008888568628323b Mon Sep 17 00:00:00 2001 From: Arseniy-Movshev Date: Fri, 21 Jul 2023 10:09:37 +0100 Subject: qmlPlugin: make file loading less verbose This removes a large proportion of the log spam. This was getting a bit too much because UI now loads several graphs at once. --- qmlplugin/hrDataLoader.cpp | 3 --- qmlplugin/stepsDataLoader.cpp | 4 ---- qmlplugin/weightDataLoader.cpp | 3 --- 3 files changed, 10 deletions(-) (limited to 'qmlplugin') diff --git a/qmlplugin/hrDataLoader.cpp b/qmlplugin/hrDataLoader.cpp index 4a1f04c..23f2ef0 100644 --- a/qmlplugin/hrDataLoader.cpp +++ b/qmlplugin/hrDataLoader.cpp @@ -51,7 +51,6 @@ QList HrDataLoader::getRawDataForDate(QDate date) { QPointF point; point.setX(line.split(":")[0].toInt()); point.setY(line.split(":")[1].toInt()); - qDebug() << point; m_filedata.append(point); } file.close(); @@ -68,10 +67,8 @@ QVariant HrDataLoader::getDataFromTo(QDate date1, QDate date2) { for (QDate i = date1; i <= date2; i = i.addDays(1)) { qDebug() << "currently loading " << i; QList data = getRawDataForDate(i); - qDebug() << filedata.count(); if (filedata.count() == 0) { filedata = data; - qDebug() << filedata.count(); } else { filedata += data; } diff --git a/qmlplugin/stepsDataLoader.cpp b/qmlplugin/stepsDataLoader.cpp index 0dcc6ba..d78ab94 100644 --- a/qmlplugin/stepsDataLoader.cpp +++ b/qmlplugin/stepsDataLoader.cpp @@ -55,7 +55,6 @@ int StepsDataLoader::getTotalForDate(QDate date) { // This is obvious garbage. T int i; while (!inStream.atEnd()) { line = inStream.readLine(); - qDebug() << line; i++; } file.close(); @@ -84,7 +83,6 @@ QList StepsDataLoader::getRawDataForDate(QDate date) { QPointF point; point.setX(line.split(":")[0].toInt()); point.setY(line.split(":")[1].toInt()); - qDebug() << point; m_filedata.append(point); } file.close(); @@ -101,10 +99,8 @@ QVariant StepsDataLoader::getDataFromTo(QDate date1, QDate date2) { for (QDate i = date1; i <= date2; i = i.addDays(1)) { qDebug() << "currently loading " << i; QList data = getRawDataForDate(i); - qDebug() << filedata.count(); if (filedata.count() == 0) { filedata = data; - qDebug() << filedata.count(); } else { filedata += data; } diff --git a/qmlplugin/weightDataLoader.cpp b/qmlplugin/weightDataLoader.cpp index c585995..7dc7c6b 100644 --- a/qmlplugin/weightDataLoader.cpp +++ b/qmlplugin/weightDataLoader.cpp @@ -51,7 +51,6 @@ QList WeightDataLoader::getRawDataForDate(QDate date) { QPointF point; point.setX(line.split(":")[0].toInt()); point.setY(line.split(":")[1].toInt()); - qDebug() << point; m_filedata.append(point); } file.close(); @@ -68,10 +67,8 @@ QVariant WeightDataLoader::getDataFromTo(QDate date1, QDate date2) { for (QDate i = date1; i <= date2; i = i.addDays(1)) { qDebug() << "currently loading " << i; QList data = getRawDataForDate(i); - qDebug() << filedata.count(); if (filedata.count() == 0) { filedata = data; - qDebug() << filedata.count(); } else { filedata += data; } -- cgit v1.2.3-70-g09d2