actually show when not animating; faster show when animating
svn path=/trunk/KDE/kdelibs/; revision=954620
This commit is contained in:
parent
406a0fac5f
commit
81cc419de6
@ -559,8 +559,10 @@ void Dialog::animatedShow(Plasma::Direction direction)
|
|||||||
if (KWindowSystem::compositingActive() && d->view) {
|
if (KWindowSystem::compositingActive() && d->view) {
|
||||||
//TODO: implement for the QWidget scenario too
|
//TODO: implement for the QWidget scenario too
|
||||||
d->hideDirection = direction;
|
d->hideDirection = direction;
|
||||||
d->hideAnimId = Animator::self()->customAnimation(20, 200, Animator::EaseInCurve,
|
d->hideAnimId = Animator::self()->customAnimation(10, 100, Animator::EaseOutCurve,
|
||||||
this, "progressShow");
|
this, "progressShow");
|
||||||
|
} else {
|
||||||
|
show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -527,7 +527,7 @@ void PopupAppletPrivate::internalTogglePopup()
|
|||||||
if (q->location() != Floating) {
|
if (q->location() != Floating) {
|
||||||
dialog->animatedShow(locationToDirection(q->location()));
|
dialog->animatedShow(locationToDirection(q->location()));
|
||||||
} else {
|
} else {
|
||||||
dialog->hide();
|
dialog->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user