From d31d94e8fb47b8492fbf341b93c19ddfbcb42fa2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 22 Jun 2020 16:50:30 +0400 Subject: [PATCH] Allow external RippleButton customization. --- ui/widgets/buttons.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/widgets/buttons.h b/ui/widgets/buttons.h index e010c70..d654d2f 100644 --- a/ui/widgets/buttons.h +++ b/ui/widgets/buttons.h @@ -58,11 +58,11 @@ public: void clearState() override; + void paintRipple(QPainter &p, int x, int y, const QColor *colorOverride = nullptr); + ~RippleButton(); protected: - void paintRipple(QPainter &p, int x, int y, const QColor *colorOverride = nullptr); - void onStateChanged(State was, StateChangeSource source) override; virtual QImage prepareRippleMask() const;