22 void draw(QPainter *painter);
23 QRectF boundingRectFor(
const QRectF &rect)
const;
25 inline void setOffset(qreal dx, qreal dy) {m_xOffset = dx; m_yOffset = dy;}
27 inline void setXOffset(qreal dx) {m_xOffset = dx;}
28 inline qreal xOffset()
const {
return m_xOffset;}
30 inline void setYOffset(qreal dy) {m_yOffset = dy;}
31 inline qreal yOffset()
const {
return m_yOffset;}
33 inline void setDistance(qreal distance) { m_distance = distance; updateBoundingRect(); }
34 inline qreal distance()
const {
return m_distance; }
36 inline void setBlurRadius(qreal blurRadius) { m_blurRadius = blurRadius; updateBoundingRect(); }
37 inline qreal blurRadius()
const {
return m_blurRadius; }
39 inline void setColor(
const QColor &color) { m_color = color; }
40 inline QColor color()
const {
return m_color; }
43 inline qreal opacity()
const {
return m_opacity; }
44 inline void setOpacity(qreal opacity) { m_opacity = opacity; }
47 qreal m_opacity = 1.0;