Added missing condition: isDown() == true.

now the button looks always pressed.
CCMAIL: notmart@gmail.com

svn path=/trunk/KDE/kdelibs/; revision=1074900
This commit is contained in:
Davide Bettio 2010-01-14 22:41:17 +00:00
parent 26b361824d
commit bf492e3465

View File

@ -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 {