From 92730e9e15b9588f7aafbcc9dff8328d82ac5df4 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 5 Feb 2010 12:24:46 +0000 Subject: [PATCH] (almost) fix the tabbar animation. there are still repaint issues on the native tabbar tough svn path=/trunk/KDE/kdelibs/; revision=1085531 --- widgets/tabbar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/widgets/tabbar.cpp b/widgets/tabbar.cpp index 2e64232d8..68fb607b3 100644 --- a/widgets/tabbar.cpp +++ b/widgets/tabbar.cpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include @@ -109,7 +109,7 @@ public: int newPageAnimId; Animation *oldPageAnim; Animation *newPageAnim; - QSequentialAnimationGroup *animGroup; + QParallelAnimationGroup *animGroup; bool customFont; }; @@ -158,7 +158,7 @@ void TabBarPrivate::slidingNewPageCompleted() void TabBarPrivate::slidingOldPageCompleted() { - QGraphicsWidget *item = newPageAnim->targetWidget(); + QGraphicsWidget *item = oldPageAnim->targetWidget(); oldPageAnimId = -1; item->hide(); @@ -249,7 +249,7 @@ TabBar::TabBar(QGraphicsWidget *parent) d->newPageAnim = Animator::create(Animator::SlideAnimation); d->oldPageAnim = Animator::create(Animator::SlideAnimation); - d->animGroup = new QSequentialAnimationGroup(this); + d->animGroup = new QParallelAnimationGroup(this); d->animGroup->addAnimation(d->newPageAnim); d->animGroup->addAnimation(d->oldPageAnim);