use custom drop shadow effect in AppBar

This commit is contained in:
laserpants 2016-03-22 16:51:16 +03:00
parent e8989de074
commit 04d8f64d2c
1 changed files with 3 additions and 3 deletions

View File

@ -1,14 +1,14 @@
#include <QGraphicsDropShadowEffect>
#include <QHBoxLayout>
#include <QLabel>
#include <QPainter>
#include "appbar.h"
#include "lib/customshadoweffect.h"
AppBar::AppBar(QWidget *parent)
: QWidget(parent)
{
QGraphicsDropShadowEffect *effect = new QGraphicsDropShadowEffect;
effect->setOffset(0, 2);
CustomShadowEffect *effect = new CustomShadowEffect;
effect->setDistance(3);
effect->setBlurRadius(11);
effect->setColor(QColor(0, 0, 0, 50));
setGraphicsEffect(effect);