diff options
Diffstat (limited to 'src/ui/RippleOverlay.h')
-rw-r--r-- | src/ui/RippleOverlay.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/ui/RippleOverlay.h b/src/ui/RippleOverlay.h index 7ae3e4f1..3256c28d 100644 --- a/src/ui/RippleOverlay.h +++ b/src/ui/RippleOverlay.h @@ -12,50 +12,50 @@ class Ripple; class RippleOverlay : public OverlayWidget { - Q_OBJECT + Q_OBJECT public: - explicit RippleOverlay(QWidget *parent = nullptr); + explicit RippleOverlay(QWidget *parent = nullptr); - void addRipple(Ripple *ripple); - void addRipple(const QPoint &position, qreal radius = 300); + void addRipple(Ripple *ripple); + void addRipple(const QPoint &position, qreal radius = 300); - void removeRipple(Ripple *ripple); + void removeRipple(Ripple *ripple); - inline void setClipping(bool enable); - inline bool hasClipping() const; + inline void setClipping(bool enable); + inline bool hasClipping() const; - inline void setClipPath(const QPainterPath &path); + inline void setClipPath(const QPainterPath &path); protected: - void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE; + void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE; private: - Q_DISABLE_COPY(RippleOverlay) + Q_DISABLE_COPY(RippleOverlay) - void paintRipple(QPainter *painter, Ripple *ripple); + void paintRipple(QPainter *painter, Ripple *ripple); - QList<Ripple *> ripples_; - QPainterPath clip_path_; - bool use_clip_; + QList<Ripple *> ripples_; + QPainterPath clip_path_; + bool use_clip_; }; inline void RippleOverlay::setClipping(bool enable) { - use_clip_ = enable; - update(); + use_clip_ = enable; + update(); } inline bool RippleOverlay::hasClipping() const { - return use_clip_; + return use_clip_; } inline void RippleOverlay::setClipPath(const QPainterPath &path) { - clip_path_ = path; - update(); + clip_path_ = path; + update(); } |