19 Star 90 Fork 27

thb1314 / HaibinSerialPortDebuger

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
MessageBox.h 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
thb 提交于 2019-07-16 10:00 . 基本完成功能
#ifndef MESSAGEBOX_H
#define MESSAGEBOX_H
#include <QMessageBox>
#include <QDialog>
#include <QPoint>
class QPushButton;
class QLabel;
class MessageBox : public QDialog
{
Q_OBJECT
public:
explicit MessageBox(QWidget* parent = 0, Qt::WindowFlags f = Qt::WindowFlags());
enum Icon
{
// keep this in sync with QMessageDialogOptions::Icon
NoIcon = 0,
Information = 1,
Warning = 2,
Critical = 3,
Question = 4
};
Q_ENUM(Icon)
void initWidget(void);
bool setInfoText(const QString& text);
void setInfoIcoType(const Icon icon);
void setWindowTitle(const QString& title);
QPushButton* confirm_button;
QPushButton* cancel_button;
static int warning(QWidget* parent, const QString& title, const QString& text);
static int info(QWidget* parent, const QString& title, const QString& text);
static int about(QWidget* parent, const QString& title, const QString& text);
bool eventFilter(QObject*, QEvent*);
private:
QLabel* infotext;
QLabel* labico;
QLabel* centralTitle;
bool record_mousePressed;
QPoint record_mousePoint;
signals:
public slots:
};
#endif // MESSAGEBOX_H
C++
1
https://gitee.com/thb1314/HaibinSerialPortDebuger.git
git@gitee.com:thb1314/HaibinSerialPortDebuger.git
thb1314
HaibinSerialPortDebuger
HaibinSerialPortDebuger
master

搜索帮助