qt-material-widgets/components/toggle.h

24 lines
341 B
C
Raw Normal View History

2016-03-25 21:57:51 +00:00
#ifndef TOGGLE_H
#define TOGGLE_H
2016-03-26 10:37:48 +00:00
#include <QAbstractButton>
class RippleOverlay;
class Toggle : public QAbstractButton
{
Q_OBJECT
public:
explicit Toggle(QWidget *parent = 0);
~Toggle();
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
private:
RippleOverlay *const _overlay;
};
2016-03-25 21:57:51 +00:00
#endif // TOGGLE_H