use custom drop shadow effect in AppBar
This commit is contained in:
parent
e8989de074
commit
04d8f64d2c
|
@ -1,14 +1,14 @@
|
||||||
#include <QGraphicsDropShadowEffect>
|
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include "appbar.h"
|
#include "appbar.h"
|
||||||
|
#include "lib/customshadoweffect.h"
|
||||||
|
|
||||||
AppBar::AppBar(QWidget *parent)
|
AppBar::AppBar(QWidget *parent)
|
||||||
: QWidget(parent)
|
: QWidget(parent)
|
||||||
{
|
{
|
||||||
QGraphicsDropShadowEffect *effect = new QGraphicsDropShadowEffect;
|
CustomShadowEffect *effect = new CustomShadowEffect;
|
||||||
effect->setOffset(0, 2);
|
effect->setDistance(3);
|
||||||
effect->setBlurRadius(11);
|
effect->setBlurRadius(11);
|
||||||
effect->setColor(QColor(0, 0, 0, 50));
|
effect->setColor(QColor(0, 0, 0, 50));
|
||||||
setGraphicsEffect(effect);
|
setGraphicsEffect(effect);
|
||||||
|
|
Loading…
Reference in New Issue