forked from qt-creator/qt-creator
Utils: ShowPwdButton paint while not enabled
Change-Id: Ie76413b91d91e703e108192b04e8bbfeed2774f0 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -33,7 +33,7 @@ void ShowPasswordButton::paintEvent(QPaintEvent *e)
|
||||
QPainter p(this);
|
||||
QRect r(QPoint(), size());
|
||||
|
||||
if (m_containsMouse)
|
||||
if (m_containsMouse && isEnabled())
|
||||
StyleHelper::drawPanelBgRect(&p, r, creatorTheme()->color(Theme::FancyToolButtonHoverColor));
|
||||
|
||||
QWindow *window = this->window()->windowHandle();
|
||||
|
||||
Reference in New Issue
Block a user