Address reviewed issues

This commit is contained in:
John Gibbon 2020-11-23 00:04:27 +01:00 committed by jgibbon
parent caa74ae219
commit 8fd82caf96

View file

@ -17,9 +17,8 @@
along with Fernschreiber. If not, see <http://www.gnu.org/licenses/>. along with Fernschreiber. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef DEBUGLOG_H #ifndef DEBUGLOGJS_H
#define DEBUGLOG_H #define DEBUGLOGJS_H
#include <QObject> #include <QObject>
#include <QQmlEngine> #include <QQmlEngine>
@ -39,14 +38,14 @@ public:
void setEnabled(bool value) { void setEnabled(bool value) {
if (enabled != value) { if (enabled != value) {
enabled = value; enabled = value;
Q_EMIT enabledChanged(value); Q_EMIT enabledChanged();
} }
} }
Q_SIGNALS: Q_SIGNALS:
void enabledChanged(bool value); void enabledChanged();
private: private:
bool enabled; bool enabled;
const QLoggingCategory category; const QLoggingCategory category;
}; };
#endif // DEBUGLOG_H #endif // DEBUGLOGJS_H