always draw when the button is in checked state
svn path=/trunk/KDE/kdelibs/; revision=1040124
This commit is contained in:
parent
82054c9c0c
commit
67065e2ed2
@ -333,8 +333,8 @@ void ToolButton::paint(QPainter *painter,
|
||||
buttonOpt.toolButtonStyle = button->toolButtonStyle();
|
||||
|
||||
|
||||
if (button->isEnabled() && (d->animId || !button->autoRaise() || d->underMouse || (buttonOpt.state & QStyle::State_On))) {
|
||||
if (button->isDown() || (buttonOpt.state & QStyle::State_On)) {
|
||||
if (button->isEnabled() && (d->animId || !button->autoRaise() || d->underMouse || (buttonOpt.state & QStyle::State_On) || button->isChecked())) {
|
||||
if (button->isDown() || (buttonOpt.state & QStyle::State_On) || button->isChecked()) {
|
||||
d->background->setElementPrefix("pressed");
|
||||
} else {
|
||||
d->background->setElementPrefix("normal");
|
||||
|
Loading…
x
Reference in New Issue
Block a user