Remove qDebug

This commit is contained in:
Matti Viljanen 2019-01-06 11:34:54 +02:00
parent ab9dc6609c
commit 6fce9e5dcc
3 changed files with 0 additions and 6 deletions

View file

@ -21,7 +21,6 @@
*/
#include <QString>
#include <QFile>
#include <QDebug>
class Battery : public QObject
{

View file

@ -50,7 +50,6 @@ void Settings::load()
int nextLimit = file.readAll().toInt();
if(nextLimit >= 10 && nextLimit <= 50) {
lowerLimit = nextLimit;
qDebug() << "Lower limit loaded:" << lowerLimit;
emit lowerLimitChanged();
}
file.close();
@ -60,7 +59,6 @@ void Settings::load()
int nextLimit = file.readAll().toInt();
if(nextLimit >= 60 && nextLimit <= 99) {
upperLimit = nextLimit;
qDebug() << "Upper limit loaded:" << upperLimit;
emit upperLimitChanged();
}
file.close();
@ -75,7 +73,6 @@ void Settings::save()
file.setFileName("lowerLimit");
if(file.open(QIODevice::WriteOnly)) {
if(file.write(QString("%1").arg(lowerLimit).toUtf8())) {
qDebug() << "Lower limit saved:" << lowerLimit;
}
file.close();
}
@ -83,7 +80,6 @@ void Settings::save()
file.setFileName("upperLimit");
if(file.open(QIODevice::WriteOnly)) {
if(file.write(QString("%1").arg(upperLimit).toUtf8())) {
qDebug() << "Upper limit saved:" << upperLimit;
}
file.close();
}

View file

@ -19,7 +19,6 @@
#define SETTINGS_H
#include <QObject>
#include <QDebug>
#include <QFile>
#include <QDir>
#include <QStandardPaths>