discard the stored active tab rectangle if the animation is not running
BUG:225355 svn path=/trunk/KDE/kdelibs/; revision=1143717
This commit is contained in:
parent
791fa67a23
commit
60b151b23e
@ -232,7 +232,7 @@ void NativeTabBar::paintEvent(QPaintEvent *event)
|
|||||||
// Drawing Tabborders
|
// Drawing Tabborders
|
||||||
QRect movingRect;
|
QRect movingRect;
|
||||||
|
|
||||||
if (d->currentAnimRect.isNull()) {
|
if (d->currentAnimRect.isNull() || !d->anim || d->anim.data()->state() != QAbstractAnimation::Running) {
|
||||||
movingRect = tabRect(currentIndex());
|
movingRect = tabRect(currentIndex());
|
||||||
} else {
|
} else {
|
||||||
movingRect = d->currentAnimRect;
|
movingRect = d->currentAnimRect;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user