recalculate the active tab rectangle when a tab gets added or removed

BUG:243002

svn path=/trunk/KDE/kdelibs/; revision=1143660
This commit is contained in:
Marco Martin 2010-06-28 13:00:54 +00:00
parent d55911f7c0
commit 791fa67a23

View File

@ -367,12 +367,24 @@ void NativeTabBar::tabInserted(int index)
{
KTabBar::tabInserted(index);
emit sizeHintChanged();
d->currentAnimRect = tabRect(currentIndex());
d->backgroundSvg->resizeFrame(size());
d->syncBorders();
update();
}
void NativeTabBar::tabRemoved(int index)
{
KTabBar::tabRemoved(index);
emit sizeHintChanged();
d->currentAnimRect = tabRect(currentIndex());
d->backgroundSvg->resizeFrame(size());
d->syncBorders();
update();
}
void NativeTabBar::tabLayoutChange()