forked from asmwarrior/FactoryTestApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSessionInfoWidget.h
46 lines (28 loc) · 863 Bytes
/
SessionInfoWidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include <QWidget>
#include <QLabel>
#include "DutButton.h"
#include "SessionManager.h"
class SessionInfoWidget : public QWidget
{
Q_OBJECT
public:
SessionInfoWidget(SessionManager* session, QWidget* parent = nullptr);
public slots:
void refresh();
private:
SessionManager* _session;
QLabel* _startTime;
QString _startTimeTemplate = "<b>Started at:</b> %1";
QLabel* _operatorName;
QString _operatorNameTemplate = "<b>Operator name:</b> %1";
QLabel* _batchNumber;
QString _batchNumberTemplate = "<b>Batch number:</b> %1";
QLabel* _totalTested;
QString _totalTestedTemplate = "<b>Total tested:</b> %1";
QLabel* _success;
QString _successTemplate = "<b>Success:</b> %1";
QLabel* _failtures;
QString _failturesTemplate = "<b>Failtures:</b> %1";
QLabel* _batchInfo;
};