1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/qqtmsgbox.h

64 lines
1.0 KiB
C
Raw Normal View History

2016-12-29 16:49:18 +08:00
#ifndef QQTMSGBOX_H
#define QQTMSGBOX_H
#include "qqtdialog.h"
namespace Ui {
class QQTMsgBox;
}
/**
* @brief The QQTMsgBox class
*
*/
class QQTMsgBox : public QQTDialog
{
Q_OBJECT
public:
explicit QQTMsgBox(QWidget *parent = 0);
~QQTMsgBox();
void warning(QString content);
void question(QString content);
void information(QString content);
2017-08-13 11:49:27 +08:00
/*
*
*/
2016-12-29 16:49:18 +08:00
static int warning(QWidget* parent = 0, QString content = "");
2017-08-13 11:49:27 +08:00
/*
*
*/
2016-12-29 16:49:18 +08:00
static int question(QWidget* parent = 0, QString content = "");
protected:
int _warning(QString content);
int _question(QString content);
private:
Ui::QQTMsgBox *ui;
quint32 m_time;
int delayShow;
void showYes();
void showYesAndNo();
void showNull();
int widgetW;
int widgetH;
int btnW;
int btnH;
int botoomH;
int xSpaceYes;
int xSpaceYesNo;
int ySpace;
// QObject interface
protected:
void timerEvent(QTimerEvent *);
};
#endif // QQTMSGBOX_H