Files
CodeRepository/Samples/Sample.IRSensorTool/frmmessagebox.h

34 lines
679 B
C
Raw Normal View History

#ifndef FRMMESSAGEBOX_H
#define FRMMESSAGEBOX_H
#include <QDialog>
namespace Ui {
class frmMessageBox;
}
class frmMessageBox : public QDialog
{
Q_OBJECT
public:
explicit frmMessageBox(QWidget *parent = 0, const QString& strOK = "确定", const QString& strCancel = "取消");
~frmMessageBox();
void SetMessage(const QString &msg, int type);
protected:
bool eventFilter(QObject *obj, QEvent *event);
private slots:
void on_btnOk_clicked();
private:
Ui::frmMessageBox *ui;
QPoint mousePoint; //鼠标拖动自定义标题栏时的坐标
bool mousePressed; //鼠标是否按下
};
#endif // FRMMESSAGEBOX_H