diff --git a/components/flatbutton.h b/components/flatbutton.h index 250a3fb..f85029c 100644 --- a/components/flatbutton.h +++ b/components/flatbutton.h @@ -24,10 +24,15 @@ protected: void enterEvent(QEvent *event) Q_DECL_OVERRIDE; void leaveEvent(QEvent *event) Q_DECL_OVERRIDE; -private: - inline void updateOverlayGeometry() { if (_overlay) { _overlay->setGeometry(rect()); } } QStyleOptionButton getStyleOption() const; +private: + inline void updateOverlayGeometry() + { + if (_overlay) + _overlay->setGeometry(rect()); + } + RippleOverlay *const _overlay; };