diff --git a/components/raisedbutton.cpp b/components/raisedbutton.cpp index e69de29..72549c7 100644 --- a/components/raisedbutton.cpp +++ b/components/raisedbutton.cpp @@ -0,0 +1,13 @@ +#include "raisedbutton.h" +#include "lib/customshadoweffect.h" + +RaisedButton::RaisedButton(QWidget *parent) + : FlatButton(parent) +{ + CustomShadowEffect *effect = new CustomShadowEffect; + setGraphicsEffect(effect); +} + +RaisedButton::~RaisedButton() +{ +} diff --git a/components/raisedbutton.h b/components/raisedbutton.h index 05eb17d..6d54242 100644 --- a/components/raisedbutton.h +++ b/components/raisedbutton.h @@ -1,4 +1,15 @@ #ifndef RAISEDBUTTON_H #define RAISEDBUTTON_H +#include "flatbutton.h" + +class RaisedButton : public FlatButton +{ + Q_OBJECT + +public: + explicit RaisedButton(QWidget *parent = 0); + ~RaisedButton(); +}; + #endif // RAISEDBUTTON_H