FemaLocalSoftware/incedentwidget.h
lopata29435_NSK 3af06d02ec finish
2025-01-08 05:13:48 +07:00

35 lines
801 B
C++

#ifndef INCEDENTWIDGET_H
#define INCEDENTWIDGET_H
#include <QFrame>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QWidget>
class IncedentWidget : public QWidget
{
Q_OBJECT
public:
explicit IncedentWidget(const QString &time,
const QString &log,
const QString &sender,
const QString &section,
const QString &status,
QWidget *parent = nullptr);
private:
QLabel *createLabel(const QString &text, int minSize = 100, int maxSize = 250);
private:
QLabel *timeLabel;
QLabel *logLabel;
QLabel *senderLabel;
QLabel *sectionLabel;
QLabel *statusLabel;
};
#endif // INCEDENTWIDGET_H