2016-04-14 13:47:27 +00:00
|
|
|
#ifndef RADIOBUTTON_H
|
|
|
|
#define RADIOBUTTON_H
|
|
|
|
|
2016-06-12 16:02:45 +00:00
|
|
|
#include <QRadioButton>
|
2016-04-14 13:47:27 +00:00
|
|
|
|
2016-06-12 16:02:45 +00:00
|
|
|
class RadioButtonPrivate;
|
|
|
|
|
|
|
|
class RadioButton : public QRadioButton
|
2016-04-14 13:47:27 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit RadioButton(QWidget *parent = 0);
|
|
|
|
~RadioButton();
|
|
|
|
|
2016-06-12 19:36:51 +00:00
|
|
|
QSize sizeHint() const;
|
|
|
|
|
2016-04-14 13:47:27 +00:00
|
|
|
protected:
|
2016-06-12 19:36:51 +00:00
|
|
|
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
2016-04-14 13:47:27 +00:00
|
|
|
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
|
2016-06-12 16:02:45 +00:00
|
|
|
|
|
|
|
const QScopedPointer<RadioButtonPrivate> d_ptr;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Q_DISABLE_COPY(RadioButton)
|
|
|
|
Q_DECLARE_PRIVATE(RadioButton)
|
2016-04-14 13:47:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RADIOBUTTON_H
|