DWIDGET_USE_NAMESPACE DArrowRectangle::DArrowRectangle(ArrowDirection direction, QWidget * parent) : QWidget(parent),m_arrowDirection(direction) { DGraphicsGlowEffect *glowEffect = new DGraphicsGlowEffect(this); glowEffect->setBlurRadius(shadowBlurRadius()); glowEffect->setDistance(shadowDistance()); glowEffect->setXOffset(shadowXOffset()); glowEffect->setYOffset(shadowYOffset()); setGraphicsEffect(glowEffect); }
DUI_USE_NAMESPACE DArrowRectangle::DArrowRectangle(ArrowDirection direction, QWidget * parent) : QWidget(parent),m_arrowDirection(direction) { D_THEME_INIT_WIDGET(DArrowRectangle); setWindowFlags(Qt::SplashScreen); setAttribute(Qt::WA_TranslucentBackground); DGraphicsGlowEffect *glowEffect = new DGraphicsGlowEffect(this); glowEffect->setBlurRadius(shadowBlurRadius()); glowEffect->setDistance(shadowDistance()); glowEffect->setXOffset(shadowXOffset()); glowEffect->setYOffset(shadowYOffset()); setGraphicsEffect(glowEffect); }