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

38 lines
743 B
C
Raw Normal View History

2016-12-29 16:49:18 +08:00
#ifndef QQTCHECKBOX_H
#define QQTCHECKBOX_H
#include <QCheckBox>
#include "qqtdefine.h"
namespace Ui {
class QQTCheckBox;
}
/**
* @brief The QQTCheckBox class
*
*/
class QQTCheckBox : public QCheckBox
{
Q_OBJECT
public:
explicit QQTCheckBox(QWidget *parent = 0);
~QQTCheckBox();
void pixMap(QImage& m_icon, QImage& m_iconSel);
void setPixmap(const QString& m_icon = QString(), const QString &m_iconSel = QString());
private:
Ui::QQTCheckBox *ui;
TBtnIconTable m_icon;
// QWidget interface
protected:
void paintEvent(QPaintEvent *);
// QAbstractButton interface
protected:
bool hitButton(const QPoint &pos) const;
};
#endif // QQTCHECKBOX_H