If the item's state changes half way through a fade animation, the opacity
will be left != 1.0. Reset it if the state has changed to something else. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=757522
This commit is contained in:
parent
8d909f6f0e
commit
6e95d0617e
@ -82,11 +82,12 @@ public:
|
||||
void prepareItemForState( LayoutItem *item , LayoutAnimator::State state ) {
|
||||
|
||||
// opacity setting for widgets
|
||||
if ( state == InsertedState && effects[state] == LayoutAnimator::FadeInMoveEffect ) {
|
||||
Widget *widget = dynamic_cast<Widget*>(item->graphicsItem());
|
||||
|
||||
if ( widget ) {
|
||||
widget->setOpacity(0); // item is invisible immediately after insertion
|
||||
Widget *widget = dynamic_cast<Widget*>(item->graphicsItem());
|
||||
if (widget) {
|
||||
if (state == InsertedState && effects[state] == LayoutAnimator::FadeInMoveEffect) {
|
||||
widget->setOpacity(0); // item is invisible immediately after insertion
|
||||
} else {
|
||||
widget->setOpacity(1.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user