-
Notifications
You must be signed in to change notification settings - Fork 5
/
messagedialog.h
46 lines (33 loc) · 855 Bytes
/
messagedialog.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
#ifndef MESSAGEDIALOG_H
#define MESSAGEDIALOG_H
#include <QDialog>
#include "paintwindow.h"
#include<QMouseEvent>
namespace Ui {
class messageDialog;
}
class messageDialog : public QDialog
{
Q_OBJECT
public:
explicit messageDialog(QString message,QString LeftText,QString RightText,QWidget *parent = nullptr);
~messageDialog();
int actionType;
bool exitCheck = true;
int dialogCheck;
bool closed=false;
private slots:
void on_yesBtn_clicked();
void on_closeBtn_clicked();
void on_noBtn_clicked();
protected:
void mouseMoveEvent(QMouseEvent* event);
void mousePressEvent(QMouseEvent* event);
void mouseReleaseEvent(QMouseEvent* event);
private:
Ui::messageDialog *ui;
void closeEvent(QCloseEvent *event);
QPoint mLastMousePosition;
bool mMoving;
};
#endif // MESSAGEDIALOG_H