26 lines
395 B
C++
26 lines
395 B
C++
#ifndef TOGGLE_H
|
|
#define TOGGLE_H
|
|
|
|
#include <QAbstractButton>
|
|
|
|
class RippleOverlay;
|
|
|
|
class Toggle : public QAbstractButton
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Toggle(QWidget *parent = 0);
|
|
~Toggle();
|
|
|
|
QSize sizeHint() const { return QSize(32, 32); }
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
private:
|
|
RippleOverlay *const _overlay;
|
|
};
|
|
|
|
#endif // TOGGLE_H
|