2016-03-18 11:14:06 +00:00
|
|
|
#ifndef FLATBUTTON_H
|
|
|
|
#define FLATBUTTON_H
|
|
|
|
|
|
|
|
#include <QAbstractButton>
|
|
|
|
|
|
|
|
class FlatButton : public QAbstractButton
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit FlatButton(QWidget *parent = 0);
|
|
|
|
explicit FlatButton(const QString &text, QWidget *parent = 0);
|
|
|
|
~FlatButton();
|
2016-03-18 14:07:20 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
void enterEvent(QEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
void leaveEvent(QEvent *event) Q_DECL_OVERRIDE;
|
2016-03-18 11:14:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FLATBUTTON_H
|