-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshowmsgdialog.h
More file actions
43 lines (33 loc) · 835 Bytes
/
showmsgdialog.h
File metadata and controls
43 lines (33 loc) · 835 Bytes
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
#ifndef SHOWMSGDIALOG_H
#define SHOWMSGDIALOG_H
#include <QDialog>
#include <QDebug>
#include "mainwindow.h"
namespace Ui {
class ShowMsgDialog;
}
class ShowMsgDialog : public QDialog
{
Q_OBJECT
public:
explicit ShowMsgDialog(QWidget *parent = nullptr);
~ShowMsgDialog();
//使得关闭按钮失效
void SetCloseBtnDisable(bool disable);
//清空所有的消息
void ClearTextEditLine();
//增加信息
void AppendMsg(const QString& str);
public slots:
//请求退出
void OnclickCloseBtn();
protected:
// void mousePressEvent(QMouseEvent*);
// void mouseMoveEvent(QMouseEvent*);
// void mouseReleaseEvent(QMouseEvent*);
private:
Ui::ShowMsgDialog *ui;
bool m_bPressed;
QPoint m_ptPress;
};
#endif // SHOWMSGDIALOG_H