qt-material-widgets/components/checkbox.h

25 lines
500 B
C
Raw Normal View History

2016-04-14 13:47:27 +00:00
#ifndef CHECKBOX_H
#define CHECKBOX_H
2016-04-18 08:36:30 +00:00
#include <QAbstractButton>
2016-04-14 13:47:27 +00:00
2016-04-18 08:36:30 +00:00
class QStyleOptionButton;
class Checkbox : public QAbstractButton
2016-04-14 13:47:27 +00:00
{
Q_OBJECT
public:
explicit Checkbox(QWidget *parent = 0);
~Checkbox();
protected:
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
2016-04-18 08:36:30 +00:00
void initStyleOption(QStyleOptionButton *option) const;
2016-04-14 13:47:27 +00:00
};
#endif // CHECKBOX_H