From bf492e34654a7cfd92be431578a9df7437bd6a0e Mon Sep 17 00:00:00 2001 From: Davide Bettio Date: Thu, 14 Jan 2010 22:41:17 +0000 Subject: [PATCH] Added missing condition: isDown() == true. now the button looks always pressed. CCMAIL: notmart@gmail.com svn path=/trunk/KDE/kdelibs/; revision=1074900 --- widgets/toolbutton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/toolbutton.cpp b/widgets/toolbutton.cpp index e72884542..9f9666dea 100644 --- a/widgets/toolbutton.cpp +++ b/widgets/toolbutton.cpp @@ -335,7 +335,7 @@ void ToolButton::paint(QPainter *painter, buttonOpt.toolButtonStyle = button->toolButtonStyle(); - if (button->isEnabled() && (d->animId || !button->autoRaise() || d->underMouse || (buttonOpt.state & QStyle::State_On) || button->isChecked())) { + if (button->isEnabled() && (d->animId || !button->autoRaise() || d->underMouse || (buttonOpt.state & QStyle::State_On) || button->isChecked() || button->isDown())) { if (button->isDown() || (buttonOpt.state & QStyle::State_On) || button->isChecked()) { d->background->setElementPrefix("pressed"); } else {