#ifndef LOGWIDGET_H #define LOGWIDGET_H #include #include class LogWidget : public QWidget { Q_OBJECT public: explicit LogWidget(QMap>> &translate, const QString &time = "", const QString &log = "", const QString &sensorId = "", const QString &group = "", const int status = 4, QWidget *parent = nullptr); private: QLabel *createLabel(const QString &text, int minSize = 100, int maxSize = 250); private: QMap>> _translate; QLabel *timeLabel; QLabel *logLabel; QLabel *sensorIdLabel; QLabel *groupLabel; QLabel *statusLabel; }; #endif // LOGWIDGET_H