FemaLocalSoftware/incedentwidget.h

35 lines
801 B
C
Raw Normal View History

2024-12-28 17:15:48 +00:00
#ifndef INCEDENTWIDGET_H
#define INCEDENTWIDGET_H
2025-01-07 22:13:48 +00:00
#include <QFrame>
#include <QHBoxLayout>
2024-12-28 17:15:48 +00:00
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
2025-01-07 22:13:48 +00:00
#include <QWidget>
2024-12-28 17:15:48 +00:00
class IncedentWidget : public QWidget
{
Q_OBJECT
public:
2025-01-07 22:13:48 +00:00
explicit IncedentWidget(const QString &time,
const QString &log,
const QString &sender,
const QString &section,
const QString &status,
QWidget *parent = nullptr);
2024-12-28 17:15:48 +00:00
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