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:
parent
26b361824d
commit
bf492e3465
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user