Newer
Older
GigAnon
committed
#ifndef LOGGERWIDGET_H
#define LOGGERWIDGET_H
#include <QWidget>
#include <QString>
class QTextEdit;
GigAnon
committed
class LoggerWidget : public QWidget
{
GigAnon
committed
public:
/**
* @brief Constructor
* @param parent The parent widget
*/
GigAnon
committed
explicit LoggerWidget(QWidget *parent = nullptr);
/**
* @brief Add a line to the log
* @param text The text to add
* @param isDebug If set, this line will be displayed as 'debug'
*/
GigAnon
committed
void log(const QString& text, bool isDebug = false);