1 | #ifndef MAINWIDGET_H |
2 | #define MAINWIDGET_H |
3 | |
4 | #include <QImage> |
5 | #include <QLabel> |
6 | #include <QWidget> |
7 | |
8 | class MainWidget : public QWidget |
9 | { |
10 | Q_OBJECT |
11 | |
12 | public: |
13 | explicit MainWidget(QWidget *parent = nullptr); |
14 | ~MainWidget() override; |
15 | |
16 | protected: |
17 | void resizeEvent(QResizeEvent *) override; |
18 | |
19 | public Q_SLOTS: |
20 | void setImage(QImage image); |
21 | void setCaption(QString text); |
22 | void setStatus(QString text); |
23 | |
24 | private: |
25 | QLabel *m_image; |
26 | QLabel *m_caption; |
27 | QLabel *m_status; |
28 | }; |
29 | |
30 | #endif // MAINWIDGET_H |
31 | |