make getStyleOption protected

This commit is contained in:
laserpants 2016-03-22 12:49:50 +03:00
parent 28b063e591
commit 9e710035f4
1 changed files with 7 additions and 2 deletions

View File

@ -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;
};