28 lines
436 B
C++
28 lines
436 B
C++
#ifndef SLOGWIDGET
|
|
#define SLOGWIDGET
|
|
|
|
#include <QWidget>
|
|
|
|
class QListWidget;
|
|
class QString;
|
|
class QVBoxLayout;
|
|
|
|
class SLogWidget: public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SLogWidget(QWidget* parent = nullptr);
|
|
void writeLog(const QString& _strLog);
|
|
|
|
public slots:
|
|
void slotWriteLog(const QString& _strLog);
|
|
|
|
private:
|
|
QListWidget* m_plwLog;
|
|
QVBoxLayout* m_pLayout;
|
|
};
|
|
|
|
|
|
#endif // SLOGWIDGET
|
|
|