manage the isChecked case
svn path=/trunk/KDE/kdelibs/; revision=945111
This commit is contained in:
parent
eb46f78fd9
commit
93a9b754a6
@ -256,7 +256,7 @@ void PushButton::paint(QPainter *painter,
|
||||
|
||||
//Normal button, pressed or not
|
||||
if (isEnabled()) {
|
||||
if (nativeWidget()->isDown()) {
|
||||
if (nativeWidget()->isDown() || nativeWidget()->isChecked()) {
|
||||
d->background->setElementPrefix("pressed");
|
||||
} else {
|
||||
d->background->setElementPrefix("normal");
|
||||
@ -278,7 +278,7 @@ void PushButton::paint(QPainter *painter,
|
||||
}
|
||||
|
||||
//if is under mouse draw the animated glow overlay
|
||||
if (!nativeWidget()->isDown() && isEnabled() && acceptHoverEvents()) {
|
||||
if (!nativeWidget()->isDown() && nativeWidget()->isChecked() && isEnabled() && acceptHoverEvents()) {
|
||||
if (d->animId != -1) {
|
||||
QPixmap normalPix = d->background->framePixmap();
|
||||
d->background->setElementPrefix("active");
|
||||
|
Loading…
Reference in New Issue
Block a user