summary refs log tree commit diff
path: root/src/ui/RaisedButton.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-17 16:37:25 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-17 16:37:25 +0300
commit0e814da91c8e041897a4c3f7e6e9234bbc7c6f7a (patch)
tree21f655d30630fe77ba48d07e4b357e2b6c6a5730 /src/ui/RaisedButton.h
parentMerge pull request #372 from bebehei/notification (diff)
downloadnheko-0e814da91c8e041897a4c3f7e6e9234bbc7c6f7a.tar.xz
Move all files under src/
Diffstat (limited to 'src/ui/RaisedButton.h')
-rw-r--r--src/ui/RaisedButton.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/ui/RaisedButton.h b/src/ui/RaisedButton.h
new file mode 100644

index 00000000..edd5ee4a --- /dev/null +++ b/src/ui/RaisedButton.h
@@ -0,0 +1,28 @@ +#pragma once + +#include <QGraphicsDropShadowEffect> +#include <QState> +#include <QStateMachine> + +#include "FlatButton.h" + +class RaisedButton : public FlatButton +{ + Q_OBJECT + +public: + explicit RaisedButton(QWidget *parent = 0); + explicit RaisedButton(const QString &text, QWidget *parent = 0); + ~RaisedButton(); + +protected: + bool event(QEvent *event) override; + +private: + void init(); + + QStateMachine *shadow_state_machine_; + QState *normal_state_; + QState *pressed_state_; + QGraphicsDropShadowEffect *effect_; +};