-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwin.h
42 lines (37 loc) · 932 Bytes
/
mainwin.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
#ifndef MAINWIN_H
#define MAINWIN_H
#include <QWidget>
#include <QStackedWidget>
#include <QVBoxLayout>
#include <QStackedLayout>
#include <QMouseEvent>
#include <QPainter>
#include <QPaintEvent>
#include "firstwidget.h"
#include "progresswidget.h"
#include "finishedwidget.h"
class MainWin : public QWidget
{
Q_OBJECT
public:
explicit MainWin(QWidget *parent = nullptr);
signals:
protected:
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void paintEvent(QPaintEvent*);
bool m_mousePressed = false;
QPoint m_mousePressedPoint;
private:
QLabel* m_lbLogo;
QVBoxLayout* m_vlayout;
QHBoxLayout* m_toplayout;
QStackedLayout* m_slayout;
QPushButton* m_btClose;
QPushButton* m_btMini;
FirstWidget* m_first;
ProgressWidget* m_progress;
FinishedWidget* m_finished;
};
#endif // MAINWIN_H