implement RaisedButton
This commit is contained in:
parent
afc1389112
commit
7dc4fcca89
|
@ -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()
|
||||||
|
{
|
||||||
|
}
|
|
@ -1,4 +1,15 @@
|
||||||
#ifndef RAISEDBUTTON_H
|
#ifndef RAISEDBUTTON_H
|
||||||
#define RAISEDBUTTON_H
|
#define RAISEDBUTTON_H
|
||||||
|
|
||||||
|
#include "flatbutton.h"
|
||||||
|
|
||||||
|
class RaisedButton : public FlatButton
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit RaisedButton(QWidget *parent = 0);
|
||||||
|
~RaisedButton();
|
||||||
|
};
|
||||||
|
|
||||||
#endif // RAISEDBUTTON_H
|
#endif // RAISEDBUTTON_H
|
||||||
|
|
Loading…
Reference in New Issue